method
index_name
![No documentation Importance_0](https://d2vfyqvduarcvs.cloudfront.net/images/importance_0.png?1349367920)
index_name(table_name, options)
public
Hide source
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 963 def index_name(table_name, options) # :nodoc: if Hash === options if options[:column] generate_index_name(table_name, options[:column]) elsif options[:name] options[:name] else raise ArgumentError, "You must specify the index name" end else index_name(table_name, index_name_options(options)) end end