diff options
author | Camil Staps <info@camilstaps.nl> | 2019-02-05 15:33:49 +0300 |
---|---|---|
committer | Camil Staps <info@camilstaps.nl> | 2019-08-07 21:49:17 +0300 |
commit | 1289efcc62c027b39dcabc211e60830ae71be75f (patch) | |
tree | e246d9ccafa2063c68759d319a49cb4da5d16459 /app/models/users_star_project.rb | |
parent | c1126d2b101355c3ae6fe85d1243769d3f7458de (diff) |
Remove postgres-specific SQL from UsersStarProject
Diffstat (limited to 'app/models/users_star_project.rb')
-rw-r--r-- | app/models/users_star_project.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/users_star_project.rb b/app/models/users_star_project.rb index e171a8220d0..04a48739d93 100644 --- a/app/models/users_star_project.rb +++ b/app/models/users_star_project.rb @@ -12,8 +12,8 @@ class UsersStarProject < ApplicationRecord alias_attribute :starred_since, :created_at - scope :order_user_name_asc, -> { joins(:user).reorder('"users"."name" ASC') } - scope :order_user_name_desc, -> { joins(:user).reorder('"users"."name" DESC') } + scope :order_user_name_asc, -> { joins(:user).reorder('users.name ASC') } + scope :order_user_name_desc, -> { joins(:user).reorder('users.name DESC') } scope :by_project, -> (project) { where(project_id: project.id) } scope :with_visible_profile, -> (user) { joins(:user).merge(User.with_visible_profile(user)) } |