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, =OPTS, &block) if [:partition_of] create_partition_of_table_from_generator(name, CreatePartitionOfTableGenerator.new(&block), ) return end super end |