Commit a44f70da authored by Eulyeon Ko's avatar Eulyeon Ko

Use arel order for ci build id desc

parent ebc6ad98
......@@ -33,7 +33,7 @@ class CommitStatus < Ci::ApplicationRecord
where(allow_failure: true, status: [:failed, :canceled])
end
scope :order_id_desc, -> { order('ci_builds.id DESC') }
scope :order_id_desc, -> { order(id: :desc) }
scope :exclude_ignored, -> do
# We want to ignore failed but allowed to fail jobs.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment