fix foreign keys in mysql
This commit is contained in:
parent
aadf615122
commit
ec4f041986
1 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@ class CreateTransactions < ActiveRecord::Migration
|
||||||
t.timestamps null: false
|
t.timestamps null: false
|
||||||
end
|
end
|
||||||
|
|
||||||
add_foreign_key :transactions, :users, :creditor_id
|
add_foreign_key :transactions, :users, column: :creditor_id
|
||||||
add_foreign_key :transactions, :users, :debtor_id
|
add_foreign_key :transactions, :users, column: :debtor_id
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue