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-04 10:36:58 +00:00
|
|
|
title time_tracking branch milestone discussion task moved opened closed merged
|
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
|