module-and-template-store/app/models/preview.rb

10 lines
166 B
Ruby

class Preview
include Mongoid::Document
field :image, type: String
belongs_to :extension
belongs_to :templates
mount_uploader :image, PreviewUploader
end