method
index_exists?
v2.3.8 -
Show latest stable
- Class:
ActiveRecord::ConnectionAdapters::SchemaStatements
index_exists?(table_name, index_name, default)public
Verify the existence of an index.
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.