Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-04-17 21:14:29 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-04-17 21:14:29 +0300
commit55bc011bc0f9e6102732d2694735a546738d6c5f (patch)
tree62656acd9ebcd542c395639fb0b8c015715777c7 /app
parent2a6300a15aa3e96cdcb2d5efc22c00255d246afd (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app')
-rw-r--r--app/models/ci/pipeline.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/ci/pipeline.rb b/app/models/ci/pipeline.rb
index f5a2911fc59..d06051c7a15 100644
--- a/app/models/ci/pipeline.rb
+++ b/app/models/ci/pipeline.rb
@@ -428,6 +428,8 @@ module Ci
)
end
+ scope :order_id_desc, -> { order(id: :desc) }
+
# Returns the pipelines in descending order (= newest first), optionally
# limited to a number of references.
#