adds consistency between debates and proposals

This commit is contained in:
rgarcia
2015-11-23 13:40:31 +01:00
parent a44242b82a
commit 44f2b49647

View File

@@ -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