Skip to content

A platform for community discussion. Free, open, simple.

DEV: `check_pending` -> `check_all_pending!` (#27724)

Alan Guo Xiang Tand8e7fc4f5d97
diff --git a/lib/turbo_tests/runner.rb b/lib/turbo_tests/runner.rb
index 29485156c15..41f9c2bbcae 100644
--- a/lib/turbo_tests/runner.rb
+++ b/lib/turbo_tests/runner.rb
@@ -124,15 +124,11 @@ module TurboTests
ActiveRecord::Tasks::DatabaseTasks.migrations_paths = %w[db/migrate db/post_migrate]
- conn = ActiveRecord::Base.establish_connection(config).connection
-
begin
- ActiveRecord::Migration.check_pending!(conn)
+ ActiveRecord::Migration.check_all_pending!
rescue ActiveRecord::PendingMigrationError
puts "There are pending migrations, run rake parallel:migrate"
exit 1
- ensure
- conn.close
end
end