Skip to content
Snippets Groups Projects
Commit ac6fe0c9 authored by Alex Reisner's avatar Alex Reisner
Browse files

Add note about creating Mongo indexes.

parent 1c6d143b
No related branches found
No related tags found
No related merge requests found
......@@ -81,6 +81,10 @@ Reverse geocoding is similar:
reverse_geocoded_by :coordinates
after_validation :reverse_geocode # auto-fetch address
Once you've set up your model you'll need to create the necessary spatial indices in your database:
rake db:mongoid:create_indexes
Be sure to read _Latitude/Longitude Order_ in the _Notes on MongoDB_ section below on how to properly retrieve latitude/longitude coordinates from your objects.
### MongoMapper
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment