Browse Source

Fix old migrations failing because of new version of `strong_migrations` (#11018)

ThibG 1 month ago
parent
commit
e428e320b6
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      db/migrate/20180402040909_create_report_notes.rb

+ 2
- 2
db/migrate/20180402040909_create_report_notes.rb View File

@@ -8,7 +8,7 @@ class CreateReportNotes < ActiveRecord::Migration[5.1]
8 8
       t.timestamps
9 9
     end
10 10
 
11
-    add_foreign_key :report_notes, :reports, column: :report_id, on_delete: :cascade
12
-    add_foreign_key :report_notes, :accounts, column: :account_id, on_delete: :cascade
11
+    safety_assured { add_foreign_key :report_notes, :reports, column: :report_id, on_delete: :cascade }
12
+    safety_assured { add_foreign_key :report_notes, :accounts, column: :account_id, on_delete: :cascade }
13 13
   end
14 14
 end

Loading…
Cancel
Save