Fix deprecation message for connection pool methods

This deprecation was added in main as of 7.1 so the message shouldn't
mention 7.1, it should mention the next version of Rails.
This commit is contained in:
eileencodes 2023-05-25 08:54:01 -04:00
parent 2dbc7dbac8
commit 6bd812326c
No known key found for this signature in database
GPG Key ID: BA5C575120BBE8DF

@ -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.