houdini/db/migrate/20210122184714_create_transactions.rb
2021-02-04 10:58:38 -06:00

9 lines
230 B
Ruby

class CreateTransactions < ActiveRecord::Migration[6.1]
def change
create_table :transactions, id: :string do |t|
t.references :supporter, foreign_key: true
t.integer :amount
t.timestamps
end
end
end