diff options
Diffstat (limited to 'app/models/ci/processable.rb')
-rw-r--r-- | app/models/ci/processable.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/ci/processable.rb b/app/models/ci/processable.rb index 09dc9d4bce1..eb805ffae0a 100644 --- a/app/models/ci/processable.rb +++ b/app/models/ci/processable.rb @@ -7,6 +7,7 @@ module Ci extend ::Gitlab::Utils::Override has_one :resource, class_name: 'Ci::Resource', foreign_key: 'build_id', inverse_of: :processable + has_one :sourced_pipeline, class_name: 'Ci::Sources::Pipeline', foreign_key: :source_job_id, inverse_of: :source_job belongs_to :resource_group, class_name: 'Ci::ResourceGroup', inverse_of: :processables |