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
diff options
context:
space:
mode:
authorBrett Walker <bwalker@gitlab.com>2019-07-10 01:34:44 +0300
committerBrett Walker <bwalker@gitlab.com>2019-07-22 18:48:46 +0300
commitb0eafaaca10ce291490ee8b69cae0ce7592c1694 (patch)
treeec8e0534c49c13c8fad958fcbe5f4e9d5496c3ce /app/models
parent8073b0554fc8f7dddc250025aaf5cedd09f423cb (diff)
Add index for issues on relative position, project
and state
Diffstat (limited to 'app/models')
-rw-r--r--app/models/issue.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb
index 12d30389910..8c5dd5e382e 100644
--- a/app/models/issue.rb
+++ b/app/models/issue.rb
@@ -131,7 +131,7 @@ class Issue < ApplicationRecord
when 'due_date' then order_due_date_asc
when 'due_date_asc' then order_due_date_asc
when 'due_date_desc' then order_due_date_desc
- when 'relative_position' then order_relative_position_asc
+ when 'relative_position' then order_relative_position_asc.with_order_id_desc
else
super
end