houdini/db/migrate/20210122184714_create_transactions.rb

10 lines
230 B
Ruby
Raw Normal View History

2021-02-02 21:04:53 +00:00
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