Skip to content

Switch from ActiveRecord connection to with_connection / lease_connection #275

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

trevorturk
Copy link

@trevorturk trevorturk commented Aug 6, 2025

Ref: rails/rails#51349

Respect the new Rails config.active_record.permanent_connection_checkout setting.

Prefer with_connection where possible, but use lease_connection for after_initialize.

/cc @byroot

@trevorturk trevorturk force-pushed the permanent-connection-checkout branch from 8dd7727 to 7f65b2a Compare August 6, 2025 20:03
@byroot
Copy link
Member

byroot commented Aug 6, 2025

I'm not familiar with solid_cache, but just looking at the diff, everything seems correct to me 👍

@byroot byroot requested a review from djmb August 6, 2025 22:00
@trevorturk
Copy link
Author

Thx I wasn't sure where to start but figured you could eyeball it. Appreciate the help!

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.

2 participants