budget/db/migrate/20221120201457_create_expenses.rb

14 lines
428 B
Ruby
Raw Permalink Normal View History

2022-11-20 15:43:33 -05:00
class CreateExpenses < ActiveRecord::Migration[7.0]
def change
create_table :expenses do |t|
t.string :description, default: "", null: false
t.decimal :payment, default: 0.00, null: false, precision: 8, scale: 2
t.integer :period, default: 0, null: false
t.boolean :autopaid, default: false, null: false
t.boolean :estimated, default: false, null: false
t.timestamps
end
end
end