lib/tablature/statements.rb
# Creates a partitioned table using the range partition method.
#
# @param table_name [String, Symbol] The name of the partition.
# @param options [Hash] The options to create the partition.
# @yield [td] A TableDefinition object. This allows creating the table columns the same way
#   as Rails's +create_table+ does.
#
# @see Tablature::Adapters::Postgres#create_range_partition
Creates a partitioned table using the range partition method.
Creates a partitioned table using the range partition method .
def create_range_partition(table_name, options, &block)
      raise ArgumentError, 'partition_key must be defined' if options[:partition_key].nil?
      Tablature.database.create_range_partition(table_name, options, &block)
    end
def create_range_partition ( table_name , options , & block ) raise ArgumentError , 'partition_key must be defined' if options [ :partition_key ] . nil? Tablature . database . create_range_partition ( table_name , options , & block ) end
Creates a partitioned table using the range partition method.
Creates a partitioned table using the range partition method .
table_name
The name of the partition.
The name of the partition .
options
The options to create the partition.
The options to create the partition .
block
<not_specific>
]
<not_specific>
A TableDefinition object. This allows creating the table columns the same way as Rails's +create_table+ does.
A TableDefinition object . This allows creating the table columns the same way as Rails ' s + create_table + does .
see
None