Skip to content

Commit

Permalink
Merge pull request #2975 from manyfold3d/fix-migration-from-zero
Browse files Browse the repository at this point in the history
Fix migration issue ("destination exists" Problems)
  • Loading branch information
Floppy authored Oct 17, 2024
2 parents b59d7ef + f96320a commit cb2d4ee
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions db/data/20230612080306_remove_destination_exists_problems.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cb2d4ee

Please sign in to comment.