From f96320add80d97e00e6dffdcb7cfc971b3d64e20 Mon Sep 17 00:00:00 2001 From: James Smith Date: Thu, 17 Oct 2024 22:20:35 +0100 Subject: [PATCH] fix destination exists problem removal --- db/data/20230612080306_remove_destination_exists_problems.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/db/data/20230612080306_remove_destination_exists_problems.rb b/db/data/20230612080306_remove_destination_exists_problems.rb index c3556c29f..45df407f3 100644 --- a/db/data/20230612080306_remove_destination_exists_problems.rb +++ b/db/data/20230612080306_remove_destination_exists_problems.rb @@ -3,8 +3,7 @@ class RemoveDestinationExistsProblems < ActiveRecord::Migration[7.0] def up # Clean up deprecated problems - Problem.where(category: :destination_exists).destroy_all - rescue # To avoid crashes when the ignored field in Problem's default scope isn't available yet + Problem.unscoped.where(category: :destination_exists).destroy_all end def down