summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorCédric Tabin <cedric.tabin@gmail.com>2019-09-12 00:09:42 +0200
committerCédric Tabin <cedric.tabin@gmail.com>2019-09-12 07:24:42 +0200
commit6be653208ae7feaf65b57fd267bea7e32fde4ba1 (patch)
tree3053588f410f33d1b04fbff0df194fd742919046 /app/models
parent80e9f7f3463cc67c6eb1dd22fb9e2dc88ebed3f1 (diff)
downloadgitlab-ce-6be653208ae7feaf65b57fd267bea7e32fde4ba1.tar.gz
Fixes non interruptible scope name
Diffstat (limited to 'app/models')
-rw-r--r--app/models/ci/pipeline.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/ci/pipeline.rb b/app/models/ci/pipeline.rb
index 4aaabed6b7b..29317cd530d 100644
--- a/app/models/ci/pipeline.rb
+++ b/app/models/ci/pipeline.rb
@@ -231,7 +231,7 @@ module Ci
where('EXISTS (?)', ::Ci::Build.latest.with_reports(reports_scope).where('ci_pipelines.id=ci_builds.commit_id').select(1))
end
- scope :without_interruptible_builds, -> do
+ scope :with_only_interruptible_builds, -> do
where('NOT EXISTS (?)',
Ci::Build.where('ci_builds.commit_id = ci_pipelines.id')
.with_status(:running, :success, :failed)