Method: Mongoid::Indexing.create_indexes
- Defined in:
- lib/mongoid/indexing.rb
.create_indexes(models_paths = nil) ⇒ Object
18 19 20 21 22 23 24 25 |
# File 'lib/mongoid/indexing.rb', line 18 def create_indexes models_paths = nil "creating mongoid indexes..." models_paths = rails_models_paths if models_paths == :rails load_models_from_paths models_paths ::Rails::Mongoid.create_indexes end |