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 ##
|
## indexes ##
|
||||||
index :position
|
index :position
|
||||||
index [:depth.asc, :position.asc]
|
index [[:depth, Mongo::ASCENDING], [:position, Mongo::ASCENDING]]
|
||||||
end
|
end
|
||||||
|
|
||||||
module ClassMethods
|
module ClassMethods
|
||||||
|
@ -60,4 +60,5 @@ namespace :locomotive do
|
|||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user