Method: Sequel::Postgres::DatabaseMethods#create_table

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

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

Support partitions of tables using the :partition_of option.



480
481
482
483
484
485
486
487
# File 'lib/sequel/adapters/shared/postgres.rb', line 480

def create_table(name, options=OPTS, &block)
  if options[:partition_of]
    create_partition_of_table_from_generator(name, CreatePartitionOfTableGenerator.new(&block), options)
    return
  end

  super
end