method
index_name_for_remove
v3.2.8 -
Show latest stable
- Class:
ActiveRecord::ConnectionAdapters::SchemaStatements
index_name_for_remove(table_name, options = {})protected
No documentation available.
# File activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb, line 583
def index_name_for_remove(table_name, options = {})
index_name = index_name(table_name, options)
unless index_name_exists?(table_name, index_name, true)
raise ArgumentError, "Index name '#{index_name}' on table '#{table_name}' does not exist"
end
index_name
end