Fix association to testrun_execution_environment

This commit is contained in:
Sebastian Serth
2022-10-11 21:08:34 +02:00
committed by GitHub
parent e9a00353ab
commit 66ab00a6bd

View File

@ -16,7 +16,7 @@ class ExecutionEnvironment < ApplicationRecord
has_many :exercises
belongs_to :file_type
has_many :error_templates
belongs_to :testrun_execution_environment, optional: true, dependent: :destroy
has_many :testrun_execution_environments, dependent: :destroy
scope :with_exercises, -> { where('id IN (SELECT execution_environment_id FROM exercises)') }