lib/tablature/statements.rb
def attach_to_range_partition(parent_table_name, options)
      raise ArgumentError, 'name must be defined' if options[:name].blank?
      if (options[:range_start].nil? || options[:range_end].nil?) && options[:default].blank?
        raise ArgumentError, 'range_start and range_end or default must be defined'
      end

      Tablature.database.attach_to_range_partition(parent_table_name, options)
    end
# Attaches a partition to a parent by specifying the key values appearing in the partition.
#
# @param parent_table_name [String, Symbol] The name of the parent table.
# @param [Hash] options The options to create the partition.
#
# @see Tablature::Adapters::Postgres#attach_to_range_partition
Attaches a partition to a parent by specifying the key values appearing in the partition.
Attaches a partition to a parent by specifying the key values appearing in the partition .
def attach_to_range_partition(parent_table_name, options)
      raise ArgumentError, 'name must be defined' if options[:name].blank?
      if (options[:range_start].nil? || options[:range_end].nil?) && options[:default].blank?
        raise ArgumentError, 'range_start and range_end or default must be defined'
      end
      Tablature.database.attach_to_range_partition(parent_table_name, options)
    end
def attach_to_range_partition ( parent_table_name , options ) raise ArgumentError , 'name must be defined' if options [ :name ] . blank? if ( options [ :range_start ] . nil? || options [ :range_end ] . nil? ) && options [ :default ] . blank? raise ArgumentError , 'range_start and range_end or default must be defined' end Tablature . database . attach_to_range_partition ( parent_table_name , options ) end
Attaches a partition to a parent by specifying the key values appearing in the partition.
Attaches a partition to a parent by specifying the key values appearing in the partition .
parent_table_name
The name of the parent table.
The name of the parent table .
options
options The options to create the partition.
options The options to create the partition .
see
None