method
index_name_exists?
v4.2.9 -
Show latest stable
- Class:
ActiveRecord::ConnectionAdapters::SchemaStatements
index_name_exists?(table_name, index_name, default)public
Verifies the existence of an index with a given name.
The default argument is returned if the underlying implementation does not define the indexes method, as there’s no way to determine the correct answer in that case.