Skip to content

Commit

Permalink
rollback from new to old migrations (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
iyulan authored Dec 15, 2023
1 parent 1bf4c75 commit d618f82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tasks/sequel/rollback_archived_migrations.rake
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace :sequel do
missing_migrations = applied_migrations - filesystem_migrations

if missing_migrations.any?
missing_migrations.each do |migration|
missing_migrations.sort.reverse_each do |migration|
DB.log_info("Rolling back migration #{migration}...")
migrator.undo(migration)
end
Expand Down

0 comments on commit d618f82

Please sign in to comment.