2017-03-15 09:18:44 -04:00
|
|
|
class SystemNoteMetadata < ActiveRecord::Base
|
|
|
|
ICON_TYPES = %w[
|
2017-04-04 06:36:58 -04:00
|
|
|
commit merge confidential visible label assignee cross_reference
|
|
|
|
title time_tracking branch milestone discussion task moved opened closed merged
|
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
|