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: 20121019201555_create_automated_metareviews.rb
    path of file: ./repos/expertiza/db/migrate
    
    the code of the file until where you have to start completion: class CreateAutomatedMetareviews < ActiveRecord::Migration[4.2]
  def self.up
    create_table :automated_metareviews do |t|
      t.float :relevance
      t.float :content_summative
      t.float :content_problem
      t.float :content_advisory
      t.float :tone_positive
      t.float :tone_negative
      t.float :tone_neutral
      t.integer :quantity
      t.integer :plagiarism
      t.integer :version_num
      t.integer :response_id

      t.timestamps
    end

    # add a foreign key
    execute <<-SQL
      ALTER TABLE automated_metarevie
    
  def self.up
    create_table :automated_metareviews do |t|
      t.float :relevance
      t.float :content_summative
      t.float :content_problem
      t.float :content_advisory
      t.float :tone_positive
      t.float :tone_negative
      t.float :tone_neutral
      t.integer :quantity
      t.integer :plagiarism
      t.integer :version_num
      t.integer :response_id

      t.timestamps
    end

    # add a foreign key
    execute <<-SQL
      ALTER TABLE automated_metareviews
        ADD CONSTRAINT fk_automated_metareviews_responses_id
        FOREIGN KEY (response_id)
        REFERENCES responses(id)
    SQL
  end