Skip to content

Commit aa01e3c

Browse files
authored
Merge pull request rails#53684 from flavorjones/flavorjones-fix-abort-if-pending-migrations
Fix task `abort_if_pending_migrations` to not use the return value from `Array#flatten!`
2 parents 7aac5d6 + da38b85 commit aa01e3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activerecord/lib/active_record/railties/databases.rake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ db_namespace = namespace :db do
333333
pending_migrations << pool.migration_context.open.pending_migrations
334334
end
335335

336-
pending_migrations = pending_migrations.flatten!
336+
pending_migrations.flatten!
337337

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

0 commit comments

Comments
 (0)