You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
field :geo, type: Array, spacial: true
spacial_index :geo
I've run rake db:mongoid:create_indexes and I keep getting :
Problem:
Invalid index specification on CarPark: [[:geo, "2d"]], {}
Summary:
Indexes in Mongoid are defined as a hash of field name and direction/2d pairs, with a hash for any additional options.
Resolution:
Ensure that the index conforms to the correct syntax and has the correct options.
More here...
I'm sure I'm missing something really simple, what is it? :)
The text was updated successfully, but these errors were encountered:
I've code like this:
I've run
rake db:mongoid:create_indexes
and I keep getting :I'm sure I'm missing something really simple, what is it? :)
The text was updated successfully, but these errors were encountered: