diff options
Diffstat (limited to 'app/models/work_items/resource_link_event.rb')
-rw-r--r-- | app/models/work_items/resource_link_event.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/app/models/work_items/resource_link_event.rb b/app/models/work_items/resource_link_event.rb new file mode 100644 index 00000000000..6725acf8c68 --- /dev/null +++ b/app/models/work_items/resource_link_event.rb @@ -0,0 +1,16 @@ +# 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 |