12 lines
207 B
Ruby
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
|