debian-mirror-gitlab/app/models/work_items/resource_link_event.rb
2023-07-09 08:55:56 +05:30

16 lines
302 B
Ruby

# frozen_string_literal: true
module WorkItems
class ResourceLinkEvent < ResourceEvent
belongs_to :child_work_item, class_name: 'WorkItem'
validates :child_work_item, presence: true
enum action: {
add: 1,
remove: 2
}
end
end
WorkItems::ResourceLinkEvent.prepend_mod