2017-08-17 22:00:37 +05:30
|
|
|
class SystemNoteMetadata < ActiveRecord::Base
|
|
|
|
ICON_TYPES = %w[
|
|
|
|
commit description merge confidential visible label assignee cross_reference
|
2017-09-10 17:25:29 +05:30
|
|
|
title time_tracking branch milestone discussion task moved
|
|
|
|
opened closed merged duplicate
|
|
|
|
outdated
|
2017-08-17 22:00:37 +05:30
|
|
|
].freeze
|
|
|
|
|
|
|
|
validates :note, presence: true
|
|
|
|
validates :action, inclusion: ICON_TYPES, allow_nil: true
|
|
|
|
|
|
|
|
belongs_to :note
|
|
|
|
end
|