14 lines
280 B
Ruby
14 lines
280 B
Ruby
|
class HpsResult
|
||
|
include Mongoid::Document
|
||
|
include Mongoid::Timestamps
|
||
|
|
||
|
mount_uploader :file, AssetUploader
|
||
|
|
||
|
field :title
|
||
|
field :download_count, type: Integer, :default => 0
|
||
|
field :year, type: Integer
|
||
|
field :old_id
|
||
|
|
||
|
belongs_to :hps_member
|
||
|
belongs_to :hps_city
|
||
|
end
|