You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: 20181022152412_updates_and_normalizes_interventions.rb
    path of file: ./repos/ekylibre/db/migrate
    
    the code of the file until where you have to start completion: class UpdatesAndNormalizesInterventions < ActiveRecord::Migration[4.2]
  def change
    reversible do |dir|
      dir.up do
        execute <<-SQL.strip_heredoc
          UPDATE intervention_parameters
          SET workin
    
  def change
    reversible do |dir|
      dir.up do
        execute <<-SQL.strip_heredoc
          UPDATE intervention_parameters
          SET working_zone = products.initial_shape
          FROM products, interventions
          WHERE products.id = intervention_parameters.product_id
          AND (intervention_parameters.working_zone IS NULL OR ST_AsText(intervention_parameters.working_zone) = cast('MULTIPOLYGON EMPTY' as text))
          AND intervention_parameters.type IN ('InterventionTarget')
          AND interventions.id = intervention_parameters.intervention_id
          AND interventions.procedure_name IN ('harvest_transportation', 'plant_uncovering', 'installation_maintenance')
        SQL
      end
      dir.down {}
    end
  end