lib/tablature/statements.rb
# Detaches a partition from a parent.
#
# @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#detach_from_list_partition
Detaches a partition from a parent.
Detaches a partition from a parent .
def detach_from_list_partition(parent_table_name, options)
      raise ArgumentError, 'name must be defined' if options[:name].blank?
      if options[:values].blank? && options[:default].blank?
        raise ArgumentError, 'values or default must be defined'
      end
      Tablature.database.attach_to_list_partition(parent_table_name, options)
    end
def detach_from_list_partition ( parent_table_name , options ) raise ArgumentError , 'name must be defined' if options [ :name ] . blank? if options [ :values ] . blank? && options [ :default ] . blank? raise ArgumentError , 'values or default must be defined' end Tablature . database . attach_to_list_partition ( parent_table_name , options ) end
Detaches a partition from a parent.
Detaches a partition from a parent .
parent_table_name
The name of the parent table.
The name of the parent table .
options
<not_specific>
<not_specific>
options The options to create the partition.
options The options to create the partition .
see
None