-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Previously, the `readyset.connection_pool` railtie was setting up the connection pool for the gem by calling `ConnectionHandler.establish_connection`, which was resulting in the connection pool's database key being set to that of the primary database instead of "readyset". This commit resolves the issue by relying directly on `ActiveRecord::Base.establish_connection` to set up the connection pool. It also adds unit test converage to ensure the connection pool is set up as expected.
- Loading branch information
1 parent
f1b1d36
commit 59a6a1a
Showing
2 changed files
with
21 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters