forgeplus/app/models/issue_participant.rb

27 lines
679 B
Ruby

# == Schema Information
#
# Table name: issue_participants
#
# id :integer not null, primary key
# issue_id :integer
# participant_id :integer
# participant_type :integer default("0")
# created_at :datetime not null
# updated_at :datetime not null
#
# Indexes
#
# index_issue_participants_on_issue_id (issue_id)
# index_issue_participants_on_participant_id (participant_id)
#
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