summaryrefslogtreecommitdiff
path: root/app/models/system_note_metadata.rb
blob: 5cc665749419c1c87c32c999624151e75287ff1c (plain)
1
2
3
4
5
6
7
8
9
10
11
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