Method: Sequel::Postgres::DatabaseMethods#create_table?
- Defined in:
- lib/sequel/adapters/shared/postgres.rb
permalink #create_table?(name, options = OPTS, &block) ⇒ Boolean
Support partitions of tables using the :partition_of option.
472 473 474 475 476 477 478 479 |
# File 'lib/sequel/adapters/shared/postgres.rb', line 472 def create_table?(name, =OPTS, &block) if [:partition_of] create_table(name, .merge!(:if_not_exists=>true), &block) return end super end |