about summary refs log tree commit diff
path: root/db/migrate/20180402040909_create_report_notes.rb
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2019-06-09 22:55:28 +0200
committerEugen Rochko <eugen@zeonfederated.com>2019-06-09 22:55:28 +0200
commite428e320b6207d02a4b5055bda1ca52a23fdd97d (patch)
treec76cda000b767517916921609f72abcca0316b0b /db/migrate/20180402040909_create_report_notes.rb
parent654fd071b7006758e4099268c09142c8b40b6258 (diff)
Fix old migrations failing because of new version of `strong_migrations` (#11018)
Diffstat (limited to 'db/migrate/20180402040909_create_report_notes.rb')
-rw-r--r--db/migrate/20180402040909_create_report_notes.rb4
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