From 97d840955756cc8b8baf05353c8d5d5bbad584bc Mon Sep 17 00:00:00 2001 From: Ralf Teusner Date: Wed, 1 Nov 2017 10:14:52 +0100 Subject: [PATCH] add association between exercise and user_exercise_feedback --- app/models/exercise.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/exercise.rb b/app/models/exercise.rb index 58d328ae..b7487399 100644 --- a/app/models/exercise.rb +++ b/app/models/exercise.rb @@ -20,6 +20,7 @@ class Exercise < ActiveRecord::Base has_many :exercise_tags has_many :tags, through: :exercise_tags accepts_nested_attributes_for :exercise_tags + has_many :user_exercise_feedbacks has_many :external_users, source: :user, source_type: ExternalUser, through: :submissions has_many :internal_users, source: :user, source_type: InternalUser, through: :submissions