gitlab-org--gitlab-foss/app/models/system_note_metadata.rb

14 lines
387 B
Ruby
Raw Normal View History

2017-03-15 09:18:44 -04:00
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 duplicate
outdated
2017-03-15 09:18:44 -04:00
].freeze
validates :note, presence: true
validates :action, inclusion: ICON_TYPES, allow_nil: true
2017-03-15 09:18:44 -04:00
belongs_to :note
end