BigW Consortium Gitlab

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

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

  belongs_to :note
end