method

index_name_exists?

rails latest stable - Class: ActiveRecord::ConnectionAdapters::SchemaStatements
index_name_exists?(table_name, index_name)
public

Verifies the existence of an index with a given name.