rails/rails — pull request #13688 by jbaudanza (2014-01-13 01:13:21+00:00)
Title: PostgreSQL implementation of SchemaStatements#index_name_exists?

The default implementation of `#index_name_exists?` calls `#indexes` and then matches the index name. The problem with this approach is that `#indexes` does not return indexes that are not compatible with the schema dumper. For example, expression indexes will be skipped.

This PR fixes #11018