instance method
reconnect
Ruby on Rails 7.2.3
Since v7.1.6 PrivateSignature
reconnect()
No documentation comment.
Source
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 992
def reconnect
begin
@raw_connection&.reset
rescue PG::ConnectionBad
@raw_connection = nil
end
connect unless @raw_connection
end
Defined in activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb line 992
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::PostgreSQLAdapter