Method: Sequel::Postgres::DatabaseMethods#drop_schema

Defined in:
lib/sequel/adapters/shared/postgres.rb

#drop_schema(name, opts = OPTS) ⇒ Object

Drops a schema from the database. Arguments:

name

name of the schema to drop

opts

options hash:

:cascade

Drop all objects in this schema.

:if_exists

Don’t raise an error if the schema doesn’t exist.



270
271
272
# File 'lib/sequel/adapters/shared/postgres.rb', line 270

def drop_schema(name, opts=OPTS)
  self << drop_schema_sql(name, opts)
end