class Apartment::Adapters::PostgresqlAdapter

Default adapter when not using Postgresql Schemas

def drop(tenant)

def drop(tenant)
  # Apartment.connection.drop_database note that drop_database will not throw an exception, so manually execute
  Apartment.connection.execute(%{DROP DATABASE "#{tenant}"})
rescue *rescuable_exceptions
  raise DatabaseNotFound, "The tenant #{tenant} cannot be found"
end

def rescue_from

def rescue_from
  PGError
end