ask/app/models/ask_image.rb

9 lines
174 B
Ruby

class AskImage
include Mongoid::Document
include Mongoid::Timestamps
mount_uploader :file, AskImageUploader
field :ask_question_id
field :album_crops,default: []
end