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: 20160201181320_fix_email_logs.rb
    path of file: ./repos/discourse/db/migrate
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

class FixEmailLogs < ActiveRecord::Migration[4.2]
  def up
    execute <<-SQ
    
  def up
    execute <<-SQL
      UPDATE email_logs
         SET user_id = u.id
        FROM email_logs el
   LEFT JOIN users u ON u.email = el.to_address
       WHERE email_logs.id = el.id
         AND email_logs.user_id IS NULL
         AND NOT email_logs.skipped
    SQL
  end