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 deprecation warning when using connection_config #94

Merged
merged 3 commits into from
Nov 20, 2023

Conversation

bliof-fc
Copy link
Member

ActiveRecord::Base.try(:connection_db_config).try(:adapter)
=> "postgresql"

ActiveRecord::Base.try(:connection_config)[:adapter]
W, [2023-11-17T16:12:59.253878+02:00 #22587] DEPRECATION WARNING: connection_config is deprecated and will be removed from Rails 7.0 (Use connection_db_config instead) (called from <main> at (pry):6)
=> "postgresql"

```
ActiveRecord::Base.try(:connection_db_config).try(:adapter)
=> "postgresql"

ActiveRecord::Base.try(:connection_config)[:adapter]
W, [2023-11-17T16:12:59.253878+02:00 #22587] DEPRECATION WARNING: connection_config is deprecated and will be removed from Rails 7.0 (Use connection_db_config instead) (called from <main> at (pry):6)
=> "postgresql"
```
@bliof-fc bliof-fc requested a review from a team as a code owner November 17, 2023 14:15
@fc-infosec-sast
Copy link

fc-infosec-sast commented Nov 17, 2023

✅ SAST Report

No issues found. Good job! 💪

Add rails 7 support
Fixes DEPRECATION WARNING: connection_config is deprecated and will be removed from Rails 7.0
@bliof-fc bliof-fc force-pushed the fix-deprecation-warning branch from b686f99 to 83ca019 Compare November 17, 2023 14:59
@bliof-fc bliof-fc merged commit 4f54148 into master Nov 20, 2023
5 checks passed
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.

4 participants