Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix replica pool getter #6

Merged
merged 2 commits into from
Dec 24, 2024
Merged

Fix replica pool getter #6

merged 2 commits into from
Dec 24, 2024

Conversation

mateuscruz
Copy link
Collaborator

@mateuscruz mateuscruz commented Dec 24, 2024

Use the connection class instead of ActiveRecord::Base to find the correct replica pool, in case of multiple models that connect to separate replicas.

@mateuscruz mateuscruz self-assigned this Dec 24, 2024
@mateuscruz mateuscruz marked this pull request as ready for review December 24, 2024 04:20
Use the connection class instead of ActiveRecord::Base to find the correct replica pool, in case of multiple models that connect to separate replicas.
@mateuscruz mateuscruz force-pushed the fix-connection-handler branch from a21403f to 1301438 Compare December 24, 2024 07:10
@mateuscruz mateuscruz merged commit c6e6aee into main Dec 24, 2024
12 checks passed
@mateuscruz mateuscruz deleted the fix-connection-handler branch December 24, 2024 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant