summaryrefslogtreecommitdiff
path: root/app/models/appearance.rb
blob: 4cf8dd9a8ce2f3b4d5519eb4646d347004a808fc (plain)
1
2
3
4
5
6
7
8
9
class Appearance < ActiveRecord::Base
  validates :title,       presence: true
  validates :description, presence: true
  validates :logo,        file_size: { maximum: 1.megabyte }
  validates :header_logo, file_size: { maximum: 1.megabyte }

  mount_uploader :logo,         AttachmentUploader
  mount_uploader :header_logo,  AttachmentUploader
end