class IssueParticipant < ApplicationRecord belongs_to :issue belongs_to :participant, class_name: "User" enum participant_type: {"authored": 0, "assigned": 1, "commented": 2, "edited": 3, "atme": 4} end