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: 20230805091337_rename_votes_table_to_likes.rb
    path of file: ./repos/theodinproject/db/migrate
    
    the code of the file until where you have to start completion: class RenameVotesTableToLikes < ActiveRecord::Migration[7.0]
  def up
    
    
  def down
    remove_index :likes, %i[user_id likeable_id likeable_type]
    remove_foreign_key :likes, :users

    rename_table :likes, :votes

    rename_column :votes, :likeable_id, :votable_id
    rename_column :votes, :likeable_type, :votable_type
    rename_column :votes, :user_id, :voter_id

    change_column_null :votes, :votable_id, true
    change_column_null :votes, :votable_type, true
    change_column_null :votes, :voter_id, true

    # We're not using these columns currently
    # There will be no data loss if they need to be restored
    add_column :votes, :voter_type, :string
    add_column :votes, :vote_flag, :boolean
    add_column :votes, :vote_scope, :string
    add_column :votes, :vote_weight, :integer
  end