Farmbot-Web-App/db/migrate/20180419164627_fifty_six.rb

16 lines
323 B
Ruby
Raw Normal View History

2018-04-19 10:58:23 -06:00
class FiftySix < ActiveRecord::Migration[5.1]
BAD = 56
GOOD = 5556
ALL_OF_THEM = [ :encoder_scaling_x, :encoder_scaling_y, :encoder_scaling_z ]
safety_assured
2018-04-19 10:58:23 -06:00
def up
ALL_OF_THEM.map do |attr|
FirmwareConfig.where(attr => BAD).update_all(attr => GOOD)
end
end
def down
end
end