Skip to content

Commit

Permalink
AR task :abort_if_pending_migrations uses Array#flatten!
Browse files Browse the repository at this point in the history
and not the return value from Array#flatten!
  • Loading branch information
flavorjones committed Nov 20, 2024
1 parent a8709e6 commit b3754f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/railties/databases.rake
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ db_namespace = namespace :db do
pending_migrations << pool.migration_context.open.pending_migrations
end

pending_migrations = pending_migrations.flatten!
pending_migrations.flatten!

if pending_migrations.any?
puts "You have #{pending_migrations.size} pending #{pending_migrations.size > 1 ? 'migrations:' : 'migration:'}"
Expand Down

0 comments on commit b3754f3

Please sign in to comment.