Fix unqualified column references.

Fix various places to avoid unqualified column references to prevent any
potential ambiguous column errors.
This commit is contained in:
evazion
2022-03-01 17:48:16 -06:00
parent 036341d8ba
commit ad3f3fdce3
8 changed files with 15 additions and 15 deletions

View File

@@ -90,7 +90,7 @@ class SavedSearch < ApplicationRecord
def labels_for(user_id)
SavedSearch
.where(user_id: user_id)
.order("label")
.order(label: :asc)
.pluck(Arel.sql("distinct unnest(labels) as label"))
end
end