tab/db/migrate/20150908091546_create_transactions.rb
2015-09-08 11:30:28 +02:00

13 lines
343 B
Ruby

class CreateTransactions < ActiveRecord::Migration
def change
create_table :transactions do |t|
t.references :debtor, index: true, foreign_key: true
t.references :creditor, index: true, foreign_key: true
t.integer :amount
t.string :origin
t.string :message
t.timestamps null: false
end
end
end