lib/tablature/schema_dumper.rb
# Delegate to the adapter the dumping of indexes.
Delegate to the adapter the dumping of indexes.
Delegate to the adapter the dumping of indexes .
def dump_partition_indexes(partitioned_table, stream)
      return unless Tablature.database.respond_to?(:indexes_on)
      indexes = Tablature.database.indexes_on(partitioned_table.name)
      return if indexes.empty?
      add_index_statements = indexes.map do |index|
        table_name = remove_prefix_and_suffix(index.table).inspect
        "  add_index #{([table_name] + index_parts(index)).join(', ')}"
      end
      stream.puts add_index_statements.sort.join("\n")
      stream.puts
    end
def dump_partition_indexes ( partitioned_table , stream ) return unless Tablature . database . respond_to? ( :indexes_on ) indexes = Tablature . database . indexes_on ( partitioned_table . name ) return if indexes . empty? add_index_statements = indexes . map do | index | table_name = remove_prefix_and_suffix ( index . table ) . inspect "  add_index #{([table_name] + index_parts(index)).join(', ')}" end stream . puts add_index_statements . sort . join ( "\n" ) stream . puts end
Delegate to the adapter the dumping of indexes.
Delegate to the adapter the dumping of indexes .
partitioned_table
<not_specific>
stream
<not_specific>