ask/app/models/ask_file.rb

7 lines
137 B
Ruby

class AskFile
include Mongoid::Document
include Mongoid::Timestamps
mount_uploader :file, AssetUploader
field :ask_question_id
end