gitlab-org--gitlab-foss/app/models/system_note_metadata.rb
2017-03-28 15:16:41 +02:00

11 lines
329 B
Ruby

class SystemNoteMetadata < ActiveRecord::Base
ICON_TYPES = %w[
commit merge confidentiality status label assignee cross_reference
title time_tracking branch milestone discussion task moved
].freeze
validates :note, presence: true
validates :action, inclusion: ICON_TYPES, allow_nil: true
belongs_to :note
end