1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-19 05:09:38 +02:00
Maybe/db/migrate/20241230154019_create_budgets.rb
2024-12-30 17:29:59 -05:00

13 lines
434 B
Ruby

class CreateBudgets < ActiveRecord::Migration[7.2]
def change
create_table :budgets, id: :uuid do |t|
t.references :family, null: false, foreign_key: true, type: :uuid
t.date :start_date, null: false
t.date :end_date, null: false
t.decimal :budgeted_amount, null: false, precision: 19, scale: 4
t.decimal :expected_income, null: false, precision: 19, scale: 4
t.timestamps
end
end
end