From 054a553de7a24f0165559177495488890a6e54a0 Mon Sep 17 00:00:00 2001 From: lucke84 Date: Thu, 28 May 2015 12:11:32 +0200 Subject: [PATCH] Document remove_undefined_indexes task --- source/en/mongoid/docs/indexing.haml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/en/mongoid/docs/indexing.haml b/source/en/mongoid/docs/indexing.haml index 8552da5a..48d2cec0 100644 --- a/source/en/mongoid/docs/indexing.haml +++ b/source/en/mongoid/docs/indexing.haml @@ -125,3 +125,11 @@ :coderay #!ruby rake db:mongoid:remove_indexes + +%p + Finally, Mongoid provides a rake task to delete all and only the non-defined + indexes (the ones that do not exist in the models anymore). + +:coderay + #!ruby + rake db:mongoid:remove_undefined_indexes