diff --git a/db/migrate/20200912190210_update_weight_calculators.rb b/db/migrate/20200912190210_update_weight_calculators.rb index 5ca5619f5a..d93e0d919e 100644 --- a/db/migrate/20200912190210_update_weight_calculators.rb +++ b/db/migrate/20200912190210_update_weight_calculators.rb @@ -6,7 +6,7 @@ class UpdateWeightCalculators < ActiveRecord::Migration Calculator::Weight.all.each { |calculator| calculator.preferred_unit_from_list = 'kg' - Rails.cache.delete("/calculator/weight/preferred_per_kg/#{calculator.id}") + Rails.cache.delete("/calculator/weight/per_kg/#{calculator.id}") calculator.save } end