debian-mirror-gitlab/app/models/resource_events/merge_request_assignment_event.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
328 B
Ruby
Raw Normal View History

2023-06-20 00:43:36 +05:30
# frozen_string_literal: true
module ResourceEvents
class MergeRequestAssignmentEvent < ApplicationRecord
self.table_name = :merge_request_assignment_events
belongs_to :user, optional: true
belongs_to :merge_request
validates :merge_request, presence: true
enum action: { add: 1, remove: 2 }
end
end