create mongoDB indexes for locomotive models without any errors
This commit is contained in:
parent
fad363a92a
commit
79f958c505
@ -18,7 +18,7 @@ module Locomotive
|
||||
|
||||
## indexes ##
|
||||
index :position
|
||||
index [:depth.asc, :position.asc]
|
||||
index [[:depth, Mongo::ASCENDING], [:position, Mongo::ASCENDING]]
|
||||
end
|
||||
|
||||
module ClassMethods
|
||||
|
@ -60,4 +60,5 @@ namespace :locomotive do
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user