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

12 lines
207 B
Ruby

class Location
include Mongoid::Document
include Mongoid::Timestamps
mount_uploader :file, GprsUploader
field :name
field :description
field :longitude, type: Float
field :latitude, type: Float
end