Skip to content

Commit

Permalink
Fix missed connection handler call
Browse files Browse the repository at this point in the history
In #45924 I updated the methods on connection handler to clear all
connections regardless of role. I missed this call because it doesn't
throw deprecation warnings in the Active Record tests.
  • Loading branch information
eileencodes committed Oct 27, 2022
1 parent 64cac36 commit 1bb2e55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/migration.rb
Expand Up @@ -646,7 +646,7 @@ def load_schema_if_pending!
# Roundtrip to Rake to allow plugins to hook into database initialization.
root = defined?(ENGINE_ROOT) ? ENGINE_ROOT : Rails.root
FileUtils.cd(root) do
Base.connection_handler.clear_all_connections!
Base.connection_handler.clear_all_connections!(:all)
system("bin/rails db:test:prepare")
end
end
Expand Down

0 comments on commit 1bb2e55

Please sign in to comment.