saucy/db/migrate/20220621101236_create_contributions.rb
2022-06-25 13:48:46 +01:00

15 lines
374 B
Ruby

class CreateContributions < ActiveRecord::Migration[7.0]
def change
create_table :contributions, id: :uuid do |t|
t.references :member, type: :uuid, foreign_key: true, null: false
t.integer :eurocents, null: false
t.date :payment_on, null: false
t.string :payment_method
t.string :payment_reference
t.timestamps
end
end
end