method
discard!
rails latest stable - Class:
ActiveRecord::ConnectionAdapters::ConnectionPool
discard!()public
Discards all connections in the pool (even if they’re currently leased!), along with the pool itself. Any further interaction with the pool (except #spec and #schema_cache) is undefined.
See AbstractAdapter#discard!