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: 20200407172801_remove_vitis_child_in_nomenclatures.rb
    path of file: ./repos/ekylibre/db/migrate
    
    the code of the file until where you have to start completion: class RemoveVitisChildInNomenclatures < ActiveRecord::Migration[4.2]
  def up
    # remove all vitis_xxx and keep only vitis in variety
    # replace all vitis_xxx by vitis in records
    execute <<-SQL
      UPDATE activities
      SET cultivation_variety = 'vitis'
      WHERE cultivation_variety LIKE 'vitis%'
    SQL

    execute <<-SQL
      UPDATE product_nature_variants
      SET variety = 'vitis'
      WHERE variety LIKE 'vitis%'
    SQL

    execute <<-SQL
      UPDATE product_nature_variants
      SET derivative_of = 'vitis'
      WHERE derivative_of LIKE 'vitis%'
    SQL

    execute <<-SQL
      UPDATE product_natures
      SET variety = 'vitis'
      WHERE variety LIKE 'vitis%'
    SQL

    execute <
    
  def up
    # remove all vitis_xxx and keep only vitis in variety
    # replace all vitis_xxx by vitis in records
    execute <<-SQL
      UPDATE activities
      SET cultivation_variety = 'vitis'
      WHERE cultivation_variety LIKE 'vitis%'
    SQL

    execute <<-SQL
      UPDATE product_nature_variants
      SET variety = 'vitis'
      WHERE variety LIKE 'vitis%'
    SQL

    execute <<-SQL
      UPDATE product_nature_variants
      SET derivative_of = 'vitis'
      WHERE derivative_of LIKE 'vitis%'
    SQL

    execute <<-SQL
      UPDATE product_natures
      SET variety = 'vitis'
      WHERE variety LIKE 'vitis%'
    SQL

    execute <<-SQL
      UPDATE product_natures
      SET derivative_of = 'vitis'
      WHERE derivative_of LIKE 'vitis%'
    SQL

    execute <<-SQL
      UPDATE products
      SET variety = 'vitis'
      WHERE variety LIKE 'vitis%'
    SQL

    execute <<-SQL
      UPDATE products
      SET derivative_of = 'vitis'
      WHERE derivative_of LIKE 'vitis%'
    SQL
  end