Orbit/vendor/built_in_modules/location/app/models/location.rb

14 lines
251 B
Ruby
Raw Normal View History

2012-12-07 04:40:21 +00:00
class Location
include Mongoid::Document
include Mongoid::Timestamps
mount_uploader :file, LocationUploader
field :name
field :description
field :longitude, type: Float
field :latitude, type: Float
2013-06-21 10:24:46 +00:00
belongs_to :location_category
2012-12-07 04:40:21 +00:00
end