method
index_name_exists?
v3.1.0 -
Show latest stable
- Class:
ActiveRecord::ConnectionAdapters::SchemaStatements
index_name_exists?(table_name, index_name, default)public
Verify 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.