method

index_name_exists?

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.