Remove foreign-key removal in downwards migration

This commit is contained in:
Andreas Nedbal 2024-01-24 21:05:46 +01:00 committed by Andreas Nedbal
parent 5a17466999
commit 2a9404e285
1 changed files with 1 additions and 1 deletions

View File

@ -34,6 +34,6 @@ class AddTargetUserToReports < ActiveRecord::Migration[7.0]
end
def down
remove_reference :reports, :target_user, null: true, foreign_key: { to_table: :users }
remove_reference :reports, :target_user, null: true, foreign_key: false
end
end