method

index_exists?

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.