summaryrefslogtreecommitdiff
path: root/app/models/system_note_metadata.rb
blob: 414c95f770583f55df66f1fc0fa265ed2ff8b307 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
class SystemNoteMetadata < ActiveRecord::Base
  ICON_TYPES = %w[
    commit description merge confidential visible label assignee cross_reference
    title time_tracking branch milestone discussion task moved opened closed merged
    outdated
  ].freeze

  validates :note, presence: true
  validates :action, inclusion: ICON_TYPES, allow_nil: true

  belongs_to :note
end