Merge pull request #48300 from eileencodes/fix-deprecation-message-for-connection-pool-methods

Fix deprecation message for connection pool methods
This commit is contained in:
Eileen M. Uchitelle 2023-05-25 14:41:19 -04:00 committed by GitHub
commit 58827663e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -292,7 +292,7 @@ def deprecation_for_pool_handling(method)
if roles.flatten.uniq.count > 1
ActiveRecord.deprecator.warn(<<-MSG.squish)
`#{method}` currently only applies to connection pools in the current
role (`#{ActiveRecord::Base.current_role}`). In Rails 7.1, this method
role (`#{ActiveRecord::Base.current_role}`). In Rails 7.2, this method
will apply to all known pools, regardless of role. To affect only those
connections belonging to a specific role, pass the role name as an
argument. To switch to the new behavior, pass `:all` as the role name.