Add missing has_many associations for Users

This commit is contained in:
Sebastian Serth
2023-09-21 11:23:52 +02:00
parent c467cfb976
commit b77c98b03f

View File

@ -22,6 +22,9 @@ class User < ApplicationRecord
has_many :interventions, through: :user_exercise_interventions
has_many :remote_evaluation_mappings, as: :user
has_many :runners, as: :contributor
has_many :events
has_many :events_synchronized_editor, class_name: 'Event::SynchronizedEditor'
has_many :pair_programming_exercise_feedbacks
has_one :codeharbor_link, dependent: :destroy
accepts_nested_attributes_for :user_proxy_exercise_exercises