mongoid/mongoid — pull request #3083 by afeld (2013-05-31 05:28:48+00:00)
Title: add `mongoid:remove_undefined_indexes` rake task

Removes indexes that exist in the database but aren't specified on the models. Useful as an application evolves over time and indexes are changed on the models, where it's easy to forget to remove the old ones.