Method: Sequel::Postgres::DatabaseMethods#create_table?

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

#create_table?(name, options = OPTS, &block) ⇒ Boolean

Support partitions of tables using the :partition_of option.

Returns:

  • (Boolean)
[View source]

472
473
474
475
476
477
478
479
# File 'lib/sequel/adapters/shared/postgres.rb', line 472

def create_table?(name, options=OPTS, &block)
  if options[:partition_of]
    create_table(name, options.merge!(:if_not_exists=>true), &block)
    return
  end

  super
end