Skip to content

Commit

Permalink
add fsq_id to bar model
Browse files Browse the repository at this point in the history
  • Loading branch information
ivana committed Apr 19, 2012
1 parent 21bfeb6 commit f6f147b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/models/non_smoking_bar.rb
Expand Up @@ -2,12 +2,12 @@ class NonSmokingBar
include Mongoid::Document
include Mongoid::Spacial::Document

# id is the same as the 4sq id
field :name, type: String
field :address, type: String
field :coords, type: Array, spacial: true
field :coords, type: Array, spacial: true # longitude latitude array in that order - [lng, lat]
field :fsq_id, type: String # foursquare id != _id

validates_presence_of :name, :coords
validates_presence_of :name, :coords, :fsq_id

spacial_index :coords
end
Expand Down

0 comments on commit f6f147b

Please sign in to comment.