instance method
flush!
Ruby on Rails edge
Since v5.2.8.1Signature
flush!()
Disconnect all currently idle connections. Connections currently checked out are unaffected. The pool will stop maintaining its minimum size until it is reactivated (such as by a subsequent checkout).
Source
# File activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb, line 774
def flush!
reap
flush(-1)
# Stop maintaining the minimum size until reactivated
@activated = false
end
Defined in activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb line 774
· View on GitHub
· Improve this page
· Find usages on GitHub