diff options
author | Timothy Andrew <mail@timothyandrew.net> | 2016-09-20 15:51:59 +0300 |
---|---|---|
committer | Timothy Andrew <mail@timothyandrew.net> | 2016-09-20 15:56:31 +0300 |
commit | 231a9f5b8788aa0bbb2fa304f8b937f7c09fcee1 (patch) | |
tree | fbaebf9301e8352a750af0939b3fc1ac8a231093 /lib/gitlab/database/median.rb | |
parent | 71d4bf721be6cd57ab3480bc5efb11a91d6e1891 (diff) |
Fix rubocop spec.
And `scss_lint`
Diffstat (limited to 'lib/gitlab/database/median.rb')
-rw-r--r-- | lib/gitlab/database/median.rb | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/gitlab/database/median.rb b/lib/gitlab/database/median.rb index 21b4c043655..94f060bd2c7 100644 --- a/lib/gitlab/database/median.rb +++ b/lib/gitlab/database/median.rb @@ -27,12 +27,11 @@ module Gitlab from(arel_table.project(Arel.sql('*')).order(arel_table[column_sym]).as(arel_table.table_name)). project(average([arel_table[column_sym]], 'median')). where(Arel::Nodes::Between.new( - Arel.sql("(select @row_id := @row_id + 1)"), - Arel::Nodes::And.new( - [Arel.sql('@ct/2.0'), - Arel.sql('@ct/2.0 + 1')] - ) - )). + Arel.sql("(select @row_id := @row_id + 1)"), + Arel::Nodes::And.new( + [Arel.sql('@ct/2.0'), + Arel.sql('@ct/2.0 + 1')] + ))). # Disallow negative values where(arel_table[column_sym].gteq(0)) |