Method: Sequel::Postgres::DatabaseMethods#create_schema

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

#create_schema(name, opts = OPTS) ⇒ Object

Create a schema in the database. Arguments:

name

Name of the schema (e.g. admin)

opts

options hash:

:if_not_exists

Don’t raise an error if the schema already exists (PostgreSQL 9.3+)

:owner

The owner to set for the schema (defaults to current user if not specified)



212
213
214
# File 'lib/sequel/adapters/shared/postgres.rb', line 212

def create_schema(name, opts=OPTS)
  self << create_schema_sql(name, opts)
end