saucy/db/migrate/20220621101236_create_contributions.rb

15 lines
374 B
Ruby
Raw Normal View History

2022-06-25 12:48:46 +00:00
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