mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
fix typo in weight calculator migration
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user