Method: RecordIndex.add_index_for_model
- Defined in:
- lib/yodel/models/core/mongo/record_index.rb
.add_index_for_model(model, name, spec) ⇒ Object
51 52 53 54 |
# File 'lib/yodel/models/core/mongo/record_index.rb', line 51 def self.add_index_for_model(model, name, spec) name = model_index_name(model, name) add_index(name, spec) end |