houdini/db/migrate/20210602220525_create_recurrences.rb
2021-06-09 11:18:44 -05:00

11 lines
482 B
Ruby

class CreateRecurrences < ActiveRecord::Migration[6.1]
def change
create_table :recurrences, id: :string do |t|
t.integer "amount", null: false
t.references :recurring_donation, foreign_key: true, null: false
t.references :supporter, foreign_key: true, null: false, id: :string
t.datetime "start_date", comment: 'the moment that the recurrence should start. Could be earlier than created_at if this was imported.'
t.timestamps
end
end
end