instance method
remove_connection_pool
Ruby on Rails 8.0.4
Since v6.1.7.10Signature
remove_connection_pool(connection_name, role: ActiveRecord::Base.current_role, shard: ActiveRecord::Base.current_shard)
No documentation comment.
Parameters
-
connection_namereq -
rolekey = ActiveRecord::Base.current_role -
shardkey = ActiveRecord::Base.current_shard
Source
# File activerecord/lib/active_record/connection_adapters/abstract/connection_handler.rb, line 205
def remove_connection_pool(connection_name, role: ActiveRecord::Base.current_role, shard: ActiveRecord::Base.current_shard)
if pool_manager = get_pool_manager(connection_name)
disconnect_pool_from_pool_manager(pool_manager, role, shard)
end
end
Defined in activerecord/lib/active_record/connection_adapters/abstract/connection_handler.rb line 205
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::ConnectionHandler