2023-06-20 00:43:36 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module ResourceEvents
|
|
|
|
class IssueAssignmentEvent < ApplicationRecord
|
|
|
|
self.table_name = :issue_assignment_events
|
|
|
|
|
|
|
|
belongs_to :user, optional: true
|
|
|
|
belongs_to :issue
|
|
|
|
|
|
|
|
validates :issue, presence: true
|
|
|
|
|
|
|
|
enum action: { add: 1, remove: 2 }
|
2023-07-09 08:55:56 +05:30
|
|
|
|
|
|
|
def self.issuable_id_column
|
|
|
|
:issue_id
|
|
|
|
end
|
2023-06-20 00:43:36 +05:30
|
|
|
end
|
|
|
|
end
|