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:
parent
2dbc7dbac8
commit
6bd812326c
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user