BigW Consortium Gitlab

system_note_metadata.rb 373 Bytes
Newer Older
1 2
class SystemNoteMetadata < ActiveRecord::Base
  ICON_TYPES = %w[
3
    commit description merge confidential visible label assignee cross_reference
4
    title time_tracking branch milestone discussion task moved opened closed merged
5
    outdated
6 7 8
  ].freeze

  validates :note, presence: true
9
  validates :action, inclusion: ICON_TYPES, allow_nil: true
10 11 12

  belongs_to :note
end