Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class WellIndex::Core
- include MongoMapper::Document
- key :well_name
- key :surface_loc, Hash
- ensure_index [[:surface_loc, '2dsphere']]
- end
- class WellIndex::Core
- include Mongoid::Document
- field :well_name, type: String
- field :surface_loc, Array
- index({:surface_loc => '2dsphere'})
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement