diff options
Diffstat (limited to 'app/models/packages/build_info.rb')
-rw-r--r-- | app/models/packages/build_info.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/packages/build_info.rb b/app/models/packages/build_info.rb index 61e2194006b..6b200302aae 100644 --- a/app/models/packages/build_info.rb +++ b/app/models/packages/build_info.rb @@ -9,4 +9,8 @@ class Packages::BuildInfo < ApplicationRecord scope :order_by_pipeline_id, -> (direction) { order(pipeline_id: direction) } scope :with_pipeline_id_less_than, -> (pipeline_id) { where("#{table_name}.pipeline_id < ?", pipeline_id) } scope :with_pipeline_id_greater_than, -> (pipeline_id) { where("#{table_name}.pipeline_id > ?", pipeline_id) } + + def self.supported_keyset_orderings + { id: [:desc] } + end end |