-
Sébastien Gaya authoredSébastien Gaya authored
member.rb 766 B
# == Schema Information
#
# Table name: education_program_members
#
# id :uuid not null, primary key
# role :string
# created_at :datetime not null
# updated_at :datetime not null
# member_id :uuid not null
# program_id :uuid not null
#
# Indexes
#
# index_education_program_members_on_member_id (member_id)
# index_education_program_members_on_program_id (program_id)
#
# Foreign Keys
#
# fk_rails_... (member_id => university_people.id)
# fk_rails_... (program_id => education_programs.id)
#
class Education::Program::Member < ApplicationRecord
belongs_to :program, class_name: 'Education::Program', inverse_of: :members
belongs_to :member, class_name: 'University::Person'
end