method
setup_shared_connection_pool
v6.0.0 -
Show latest stable
- Class:
ActiveRecord::TestFixtures
setup_shared_connection_pool()private
Shares the writing connection pool with connections on other handlers.
In an application with a primary and replica the test fixtures need to share a connection pool so that the reading connection can see data in the open transaction on the writing connection.