Fix migrations failing due to strong-migrations update (#13680)

This commit is contained in:
Eugen Rochko
2020-05-08 20:23:16 +02:00
committed by GitHub
parent 6748a5acb1
commit 5892e8175a
6 changed files with 9 additions and 7 deletions

View File

@ -1,5 +1,5 @@
class AddInviteIdToUsers < ActiveRecord::Migration[5.1]
def change
add_reference :users, :invite, null: true, default: nil, foreign_key: { on_delete: :nullify }, index: false
safety_assured { add_reference :users, :invite, null: true, default: nil, foreign_key: { on_delete: :nullify }, index: false }
end
end