Skip to content

Commit

Permalink
Mark reverting as safe
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Oct 17, 2023
1 parent 4e928b5 commit 286e90f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/strong_migrations/checker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def check_lock_timeout
end

def safe?
self.class.safe || ENV["SAFETY_ASSURED"] || (direction == :down && !StrongMigrations.check_down) || version_safe?
self.class.safe || ENV["SAFETY_ASSURED"] || (direction == :down && !StrongMigrations.check_down) || version_safe? || @migration.reverting?
end

def version_safe?
Expand Down

0 comments on commit 286e90f

Please sign in to comment.