method
index_name
Ruby on Rails latest stable (v7.1.3.2)
-
0 notes -
Class: ActiveRecord::ConnectionAdapters::SchemaStatements
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