summaryrefslogtreecommitdiff
path: root/app/models/ci/build_need.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/ci/build_need.rb')
-rw-r--r--app/models/ci/build_need.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/ci/build_need.rb b/app/models/ci/build_need.rb
index 6531dfd332f..0b243c20e67 100644
--- a/app/models/ci/build_need.rb
+++ b/app/models/ci/build_need.rb
@@ -10,5 +10,6 @@ module Ci
validates :name, presence: true, length: { maximum: 128 }
scope :scoped_build, -> { where('ci_builds.id=ci_build_needs.build_id') }
+ scope :artifacts, -> { where(artifacts: true) }
end
end