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: 20090905150131_create_hostgroups.rb
    path of file: ./repos/foreman/db/migrate
    
    the code of the file until where you have to start completion: class Cre
    
  def up
    create_table :hostgroups do |t|
      t.string :name, :limit => 255

      t.timestamps null: true
    end

    add_column :hosts, :hostgroup_id, :integer
    add_column :parameters, :hostgroup_id, :integer
  end