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: 20150721115407_create_and_rename_rounding_tables_and_rounding_table_values.rb
    path of file: ./repos/i-diario/db/migrate
    
    the code of the file until where you have to start completion: class CreateAndRenameRoundingTablesAndRoundingTableValues < ActiveRecord::Migration[4.2]
  def change
    rename_table :rounding_tables, :rounding_table_values
    rename_column :rounding_table_values, :api_code, :tabela_arredondamento_id
    
  def change
    rename_table :rounding_tables, :rounding_table_values
    rename_column :rounding_table_values, :api_code, :tabela_arredondamento_id

    create_table :rounding_tables do |t|
      t.string :api_code
      t.string :name

      t.timestamps
    end

    add_column :rounding_table_values, :rounding_table_id, :integer
    add_index :rounding_table_values, :rounding_table_id
    add_foreign_key :rounding_table_values, :rounding_tables
  end