Skip to content

Fix ActiveRecord::Base.inspect to correctly indicate how to load schema #52613

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

Merged
merged 1 commit into from
Aug 15, 2024

Conversation

byroot
Copy link
Member

@byroot byroot commented Aug 15, 2024

Fix: #52601

Now that Active Record connections are fully lazy, just calling .lease_connection isn't actually enough to estalish a connection.

We might as well suggest to use a method with the actual intent.

Need to backport to 7.2.

Fix: rails#52601

Now that Active Record connections are fully lazy, just calling
`.lease_connection` isn't actually enough to estalish a connection.

We might as well suggest to use a method with the actual intent.
@byroot byroot force-pushed the fix-ar-base-lazy-schema-message branch from 7a0b2d5 to 278ebf5 Compare August 15, 2024 08:15
@byroot byroot merged commit 41921f9 into rails:main Aug 15, 2024
2 of 3 checks passed
byroot added a commit that referenced this pull request Aug 15, 2024
Fix ActiveRecord::Base.inspect to correctly indicate how to load schema
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ActiveRecord model attributes info does not show up in the Rails console after invoking lease_connection
1 participant