diff options
author | Kamil Trzciński <ayufan@ayufan.eu> | 2018-03-22 10:56:12 +0000 |
---|---|---|
committer | Kamil Trzciński <ayufan@ayufan.eu> | 2018-03-22 10:56:12 +0000 |
commit | d68ddc8366dec3a9aed357c96446a43d36e5de43 (patch) | |
tree | b59480cf52148f7d2fbeac1a9c4fcfdab48c6082 /app | |
parent | 4718f22f5751f8d50bd7897ff4a967ccc5625c80 (diff) | |
parent | e3507c9282241047d4a983f6251c5692b0f9edee (diff) | |
download | gitlab-ce-d68ddc8366dec3a9aed357c96446a43d36e5de43.tar.gz |
Merge branch '37987-speed-up-pipeline-creation' into 'master'
Speed Up Pipeline Creation
See merge request gitlab-org/gitlab-ce!17443
Diffstat (limited to 'app')
-rw-r--r-- | app/models/ci/pipeline.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/ci/pipeline.rb b/app/models/ci/pipeline.rb index f2edcdd61fd..44f9bdf111e 100644 --- a/app/models/ci/pipeline.rb +++ b/app/models/ci/pipeline.rb @@ -14,7 +14,7 @@ module Ci has_many :stages has_many :statuses, class_name: 'CommitStatus', foreign_key: :commit_id, inverse_of: :pipeline - has_many :builds, foreign_key: :commit_id + has_many :builds, foreign_key: :commit_id, inverse_of: :pipeline has_many :trigger_requests, dependent: :destroy, foreign_key: :commit_id # rubocop:disable Cop/ActiveRecordDependent has_many :variables, class_name: 'Ci::PipelineVariable' |