fix typo in weight calculator migration

This commit is contained in:
Andy Brett
2020-09-17 07:17:25 -07:00
parent 246934d8ba
commit 6466829bdc

View File

@@ -1,6 +1,6 @@
class UpdateWeightCalculators < ActiveRecord::Migration
def change
Calculator::Weight.each { |calculator|
Calculator::Weight.all.each { |calculator|
calculator.preferred_unit_from_list = 'kg'
calculator.preferred_per_unit = calculator.preferred_per_kg
calculator.preferences.delete(:preferred_per_kg)