mysql bug

This commit is contained in:
benji 2017-01-16 23:03:37 +01:00
parent e35fe64b9e
commit 7e9fab3abe

View file

@ -12,7 +12,7 @@ class CreateRequests < ActiveRecord::Migration
t.timestamps null: false
end
add_foreign_key :request, :users, column: :creditor_id
add_foreign_key :request, :users, column: :debtor_id
add_foreign_key :requests, :users, column: :creditor_id
add_foreign_key :requests, :users, column: :debtor_id
end
end