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: 20120629143908_rename_expression_type_id.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 RenameExpressionTypeId < ActiveRec
    
  def up
    add_column :expression_types, :expression_index, :integer
    execute "UPDATE expression_types SET expression_index = id"
    remove_column :expression_types, :id

    add_index :expression_types, %i[site_id expression_index], unique: true
  end