registered-sites/app/models/site_log_file.rb

15 lines
274 B
Ruby

# encoding: utf-8
class SiteLogFile
include Mongoid::Document
include Mongoid::Timestamps
include Mongoid::Attributes::Dynamic
mount_uploader :file, AssetUploader
field :title, localize: true
field :should_destroy, type: Boolean
belongs_to :site_log
end