method

reconnect!

rails latest stable - Class: ActiveRecord::ConnectionAdapters::AbstractAdapter
reconnect!(restore_transactions: false)
public

Disconnects from the database if already connected, and establishes a new connection with the database. Implementors should define private #reconnect instead.