lib/strong_migrations/checker.rb in strong_migrations-1.6.0 vs lib/strong_migrations/checker.rb in strong_migrations-1.6.1

- old
+ new

@@ -76,12 +76,14 @@ # and no longer eligible to be retried at migration level # okay to have false positives @committed = true end - # custom checks - StrongMigrations.checks.each do |check| - @migration.instance_exec(method, args, &check) + if !safe? + # custom checks + StrongMigrations.checks.each do |check| + @migration.instance_exec(method, args, &check) + end end end result = if retry_lock_timeouts?(method)