Skip to content

Comments

Deprecate connection_config#38005

Merged
eileencodes merged 1 commit intorails:masterfrom
seejohnrun:deprecate-connection_config
Dec 17, 2019
Merged

Deprecate connection_config#38005
eileencodes merged 1 commit intorails:masterfrom
seejohnrun:deprecate-connection_config

Conversation

@seejohnrun
Copy link
Member

The connection_config method returns a Hash, but since we're moving
toward a place where we're using DatabaseConfiguration::DatabaseConfig
objects everywhere, we're introducing a new method here to replace it
called connection_db_config.

Co-authored-by: eileencodes [email protected]

The `connection_config` method returns a `Hash`, but since we're moving
toward a place where we're using `DatabaseConfiguration::DatabaseConfig`
objects everywhere, we're introducing a new method here to replace it
called `connection_db_config`.

Co-authored-by: eileencodes <[email protected]>
@eileencodes eileencodes merged commit f8bda7c into rails:master Dec 17, 2019
@eileencodes eileencodes deleted the deprecate-connection_config branch December 17, 2019 18:06
eileencodes added a commit to seejohnrun/rails that referenced this pull request Dec 18, 2019
We missed these in rails#38005 because deprecation warnings are
silently swallowed by these tests.

Co-authored-by: John Crepezzi <[email protected]>
jasonrudolph added a commit to jasonrudolph/scout_apm_ruby that referenced this pull request Dec 19, 2020
Prior to this change, the first interaction with the database would emit
the following deprecation warning with Rails 6.1:

> DEPRECATION WARNING: connection_config is deprecated and will be
removed from Rails 6.2 (Use connection_db_config instead)

For more info, see rails/rails#38005 which
introduced the deprecation.
cschneid pushed a commit to scoutapp/scout_apm_ruby that referenced this pull request May 22, 2021
Prior to this change, the first interaction with the database would emit
the following deprecation warning with Rails 6.1:

> DEPRECATION WARNING: connection_config is deprecated and will be
removed from Rails 6.2 (Use connection_db_config instead)

For more info, see rails/rails#38005 which
introduced the deprecation.
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.

2 participants