richardkmichael/rails — Issue #3: Index names are not consistent.
Author: richardkmichael
Created: 2011-12-22 19:47:15+00:00
State: open

Implicit index names are `_pkey` (ex. `users_pkey`), but `add_index` created indeces are named `index__on_` (ex. `index_users_on_email`).

This makes it difficult to quickly read a list of indeces on a particular table. Example postgres output:

```plaintext
buy-my-beer-development=> \di
List of relations
Schema | Name | Type | Owner | Table
--------+--------------------------+-------+-------+-------------------
public | builds_pkey | index | rails | builds
public | collaborations_pkey | index | rails | collaborations
public | index_users_on_email | index | rails | users
public | projects_pkey | index | rails | projects
public | unique_schema_migrations | index | rails | schema_migrations
public | users_pkey | index | rails | users
(6 rows)
```