Add coverage for StatusTrend
and PreviewCardTrend
models, add locales
class method to RankedTrend
(#32688)
This commit is contained in:
parent
df3b954720
commit
babee06794
9 changed files with 64 additions and 4 deletions
|
@ -9,6 +9,10 @@ module RankedTrend
|
|||
end
|
||||
|
||||
class_methods do
|
||||
def locales
|
||||
distinct.pluck(:language)
|
||||
end
|
||||
|
||||
def recalculate_ordered_rank
|
||||
connection
|
||||
.exec_update(<<~SQL.squish)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue