diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-04-17 21:14:29 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-04-17 21:14:29 +0300 |
commit | 55bc011bc0f9e6102732d2694735a546738d6c5f (patch) | |
tree | 62656acd9ebcd542c395639fb0b8c015715777c7 /app | |
parent | 2a6300a15aa3e96cdcb2d5efc22c00255d246afd (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app')
-rw-r--r-- | app/models/ci/pipeline.rb | 2 |
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. # |