gitlab-org--gitlab-foss/app/models/appearance.rb
2016-06-03 11:10:17 +02:00

9 lines
349 B
Ruby

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