adds consistency between debates and proposals
This commit is contained in:
@@ -48,10 +48,10 @@ class Debate < ActiveRecord::Base
|
||||
},
|
||||
using: {
|
||||
tsearch: { dictionary: "spanish" },
|
||||
trigram: { threshold: 0.1 },
|
||||
},
|
||||
ranked_by: '(:tsearch + debates.cached_votes_up)',
|
||||
order_within_rank: "debates.created_at DESC"
|
||||
ignoring: :accents,
|
||||
ranked_by: '(:tsearch)',
|
||||
order_within_rank: "debates.cached_votes_up DESC"
|
||||
}
|
||||
|
||||
def description
|
||||
|
||||
Reference in New Issue
Block a user