mongoid/mongoid — Issue #1573: Old indexes are not cleaned up
Author: shawn42
Created: 2012-01-09 22:10:59+00:00
State: open

Given I have:

```ruby
class Person
include Mongoid::Document

field :name, type: String
index :name, unique: true
end
```

and I drop the index from my class definition:

```ruby
class Person
include Mongoid::Document

field :name, type: String
# index :name, unique: true
end
```

I'd expect:

```bash
rake db:mongoid:create_indexes
```

to remove the unique index on name.

I am unable to enter two documents with the same name until I reseed the db. Am I missing something in the workflow of indexes in mongoid?