class SetsVisualChecksForPico < ActiveRecord::Migration
  def self.up
    ActiveRecord::Base.transaction do
      [*InstrumentProcess.find_by_name("Pico dilution")].each do |ip|
        ip.update_attributes({
        :visual_check_required => true
      })
      end
      [*InstrumentProcess.find_by_name("Pico assay plate creation")].each do |ip|
        ip.update_attributes({
        :visual_check_required => true
      })
      end
    end
  end

  def self.down
    ActiveRecord::Base.transaction do
    end
  end
end

class SetsVisualChecksForPico < ActiveRecord::Migration
  def self.up
    ActiveRecord::Base.transaction do
      [*InstrumentProcess.find_by_key("slf_pico_dilution")].each do |ip|
        ip.update_attributes({
        :visual_check_required => true
      })
      end
      [*InstrumentProcess.find_by_key("slf_pico_assay_plates")].each do |ip|
        ip.update_attributes({
        :visual_check_required => true
      })
      end
    end
  end

  def self.down
    ActiveRecord::Base.transaction do
    end
  end
end

Update by key, instead of name, that is not compatible between environments (uat,nr,prod,...)
Update by key, instead of name, that is not compatible
between environments (uat,nr,prod,...)
