add rake task for fixing credit counter cache (#3962)

This commit is contained in:
Jess Lee 2019-09-06 13:08:39 -04:00 committed by Ben Halpern
parent 5248a781b5
commit 65fccf00a9

View file

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