Class: Combustion::Databases::PostgreSQL

Inherits:
Base
  • Object
show all
Defined in:
lib/combustion/databases/postgresql.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Combustion::Databases::Base

Instance Method Details

#resetObject



4
5
6
7
8
9
10
11
12
13
14
# File 'lib/combustion/databases/postgresql.rb', line 4

def reset
  if Combustion::VersionGate.call("activerecord", ">= 7.1.0.alpha")
    base.connection_handler.clear_active_connections!
  else
    base.clear_active_connections!
  end

  establish_connection(postgres_configuration)

  super
end