fix foreign keys in mysql

This commit is contained in:
Ilion Beyst 2015-09-08 15:42:08 +02:00
parent aadf615122
commit ec4f041986

View file

@ -10,7 +10,7 @@ class CreateTransactions < ActiveRecord::Migration
t.timestamps null: false
end
add_foreign_key :transactions, :users, :creditor_id
add_foreign_key :transactions, :users, :debtor_id
add_foreign_key :transactions, :users, column: :creditor_id
add_foreign_key :transactions, :users, column: :debtor_id
end
end