remove Rails 3.2 indexes or 4.0 indexes depending on which is there

Rails 4 generates an index name that is different than 3.2, so we need
to take that in to account when deleting the index