From b77c98b03fa5ce653a5282da17344c1b39239f59 Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Thu, 21 Sep 2023 11:23:52 +0200 Subject: [PATCH] Add missing has_many associations for Users --- app/models/user.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/models/user.rb b/app/models/user.rb index db159004..253e5137 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -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