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: 20100205163027_create_post_versions.rb
    path of file: ./repos/danbooru/db/migrate
    
    the code of the file until where you have to start completion: class CreatePostVersions < ActiveRecord::Migration[4.2]
  def self.up
    create_table :post_versions do |t|
      t.timestamps

      t.column :post_id, :integer, :null => false
      t.column :tags, :text, :null => false, :default => ""
      t.column :rating, :char
      t.column :parent_id, :integer
      t.column :source, :text
      t.column :updater_id, :integer, :null => false
      t.c
    
  def self.up
    create_table :post_versions do |t|
      t.timestamps

      t.column :post_id, :integer, :null => false
      t.column :tags, :text, :null => false, :default => ""
      t.column :rating, :char
      t.column :parent_id, :integer
      t.column :source, :text
      t.column :updater_id, :integer, :null => false
      t.column :updater_ip_addr, "inet", :null => false
    end

    add_index :post_versions, :post_id
    add_index :post_versions, :updater_id
    add_index :post_versions, :updater_ip_addr
  end