Skip to content
Permalink
Browse files

Fix old migrations failing because of new version of `strong_migratio…

…ns` (#11018)
  • Loading branch information...
ThibG authored and Gargron committed Jun 9, 2019
1 parent 654fd07 commit e428e320b6207d02a4b5055bda1ca52a23fdd97d
Showing with 2 additions and 2 deletions.
  1. +2 −2 db/migrate/20180402040909_create_report_notes.rb
@@ -8,7 +8,7 @@ def change
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

0 comments on commit e428e32

Please sign in to comment.
You can’t perform that action at this time.