add rake task for fixing credit counter cache (#3962)
This commit is contained in:
parent
5248a781b5
commit
65fccf00a9
1 changed files with 4 additions and 0 deletions
|
|
@ -100,3 +100,7 @@ task remove_old_html_variant_data: :environment do
|
|||
html_variant.calculate_success_rate! if html_variant.html_variant_successes.any?
|
||||
end
|
||||
end
|
||||
|
||||
task fix_credits_count_cache: :environment do
|
||||
Credit.counter_culture_fix_counts only: %i[user organization]
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue