Method: Mongoid::Indexing.remove_indexes
- Defined in:
- lib/mongoid/indexing.rb
.remove_indexes(models_paths = nil) ⇒ Object
27 28 29 30 31 32 33 34 35 |
# File 'lib/mongoid/indexing.rb', line 27 def remove_indexes models_paths = nil "removing mongoid indexes..." models_paths = rails_models_paths if models_paths == :rails load_models_from_paths models_paths ::Rails::Mongoid.remove_indexes end |