diff options
author | ThibG <thib@sitedethib.com> | 2019-06-09 22:55:28 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2019-06-09 22:55:28 +0200 |
commit | e428e320b6207d02a4b5055bda1ca52a23fdd97d (patch) | |
tree | c76cda000b767517916921609f72abcca0316b0b /db | |
parent | 654fd071b7006758e4099268c09142c8b40b6258 (diff) |
Fix old migrations failing because of new version of `strong_migrations` (#11018)
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20180402040909_create_report_notes.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/db/migrate/20180402040909_create_report_notes.rb b/db/migrate/20180402040909_create_report_notes.rb index 732ddf825..429cb4534 100644 --- a/db/migrate/20180402040909_create_report_notes.rb +++ b/db/migrate/20180402040909_create_report_notes.rb @@ -8,7 +8,7 @@ class CreateReportNotes < ActiveRecord::Migration[5.1] t.timestamps end - add_foreign_key :report_notes, :reports, column: :report_id, on_delete: :cascade - add_foreign_key :report_notes, :accounts, column: :account_id, on_delete: :cascade + safety_assured { add_foreign_key :report_notes, :reports, column: :report_id, on_delete: :cascade } + safety_assured { add_foreign_key :report_notes, :accounts, column: :account_id, on_delete: :cascade } end end |