lib/active_record/connection_adapters/redshift_adapter.rb
def connect
          @connection = PG::Connection.connect(@connection_parameters)

          configure_connection
        rescue ::PG::Error => error
          if error.message.include?("does not exist")
            raise ActiveRecord::NoDatabaseError.new(error.message, error)
          else
            raise
          end
        end
# Connects to a PostgreSQL server and sets up the adapter depending on the
# connected server's characteristics.
Connects to a PostgreSQL server and sets up the adapter depending on the
connected server's characteristics.
Connects to a PostgreSQL server and sets up the adapter depending on the connected server ' s characteristics .
def connect
          @connection = PG::Connection.connect(@connection_parameters)
          configure_connection
        rescue ::PG::Error => error
          if error.message.include?("does not exist")
            raise ActiveRecord::NoDatabaseError.new(error.message, error)
          else
            raise
          end
        end
def connect @connection = PG :: Connection . connect ( @connection_parameters ) configure_connection rescue :: PG :: Error => error if error . message . include? ( "does not exist" ) raise ActiveRecord :: NoDatabaseError . new ( error . message , error ) else raise end end
Connects to a PostgreSQL server and sets up the adapter depending on the
connected server's characteristics.
Connects to a PostgreSQL server and sets up the adapter depending on the connected server ' s characteristics .