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: 20190711154946_add_emailed_status_to_invite.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 AddEmailedStatusToInvite < 
    
  def change
    add_column :invites, :emailed_status, :integer
    add_index :invites, :emailed_status

    DB.exec <<~SQL
      UPDATE invites
      SET emailed_status = 0
      WHERE via_email = false
    SQL
  end