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

14 lines
251 B
Ruby

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