2017-03-15 13:18:44 +00:00
|
|
|
class SystemNoteMetadata < ActiveRecord::Base
|
|
|
|
ICON_TYPES = %w[
|
2017-04-28 23:54:37 +00:00
|
|
|
commit description merge confidential visible label assignee cross_reference
|
2017-04-05 02:31:48 +00:00
|
|
|
title time_tracking branch milestone discussion task moved
|
2017-08-30 14:57:50 +00:00
|
|
|
opened closed merged duplicate locked unlocked
|
2017-04-05 02:31:48 +00:00
|
|
|
outdated
|
2017-03-15 13:18:44 +00:00
|
|
|
].freeze
|
|
|
|
|
|
|
|
validates :note, presence: true
|
2017-03-15 13:19:45 +00:00
|
|
|
validates :action, inclusion: ICON_TYPES, allow_nil: true
|
2017-03-15 13:18:44 +00:00
|
|
|
|
|
|
|
belongs_to :note
|
|
|
|
end
|