From 2a9404e285492270acc17186dec21e23be72ffdb Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Wed, 24 Jan 2024 21:05:46 +0100 Subject: [PATCH] Remove foreign-key removal in downwards migration --- db/migrate/20240123182422_add_target_user_to_reports.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/migrate/20240123182422_add_target_user_to_reports.rb b/db/migrate/20240123182422_add_target_user_to_reports.rb index 1369940a..a91ed9e6 100644 --- a/db/migrate/20240123182422_add_target_user_to_reports.rb +++ b/db/migrate/20240123182422_add_target_user_to_reports.rb @@ -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