2017-03-15 09:18:44 -04:00
|
|
|
class SystemNoteMetadata < ActiveRecord::Base
|
|
|
|
ICON_TYPES = %w[
|
2017-04-28 19:54:37 -04:00
|
|
|
commit description merge confidential visible label assignee cross_reference
|
2017-04-04 22:31:48 -04:00
|
|
|
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
|
2017-03-15 09:19:45 -04:00
|
|
|
validates :action, inclusion: ICON_TYPES, allow_nil: true
|
2017-03-15 09:18:44 -04:00
|
|
|
|
|
|
|
belongs_to :note
|
|
|
|
end
|