method

build_create_index_definition

rails latest stable - Class: ActiveRecord::ConnectionAdapters::SchemaStatements
build_create_index_definition(table_name, column_name, **options)
public

Builds a CreateIndexDefinition object.

This definition object contains information about the index that would be created if the same arguments were passed to #add_index. See #add_index for information about passing a table_name, column_name, and other additional options that can be passed.