property_hire/app/models/property_file.rb

13 lines
263 B
Ruby

# encoding: utf-8
class PropertyFile
include Mongoid::Document
include Mongoid::Timestamps
mount_uploader :file, AssetUploader
field :description, :type => String, :default=> ""
field :title, :type => String, :default=> ""
belongs_to :property
end