Check polymorphic type in validations

* Previously, some models had "duplicated" `belongs_to` associations, which were now removed (and replaced by the `include Creation`).
This commit is contained in:
Sebastian Serth
2023-08-20 18:01:18 +02:00
committed by Sebastian Serth
parent be4f2b790d
commit 977fa4539e
16 changed files with 26 additions and 13 deletions

View File

@ -1,8 +1,8 @@
# frozen_string_literal: true
class Runner < ApplicationRecord
include Creation
belongs_to :execution_environment
belongs_to :user, polymorphic: true
before_validation :request_id