Sha256: 29d0a2455a2a4747e9d408af9d3019bcdb85d83b4af19615deee6a80b08176d1

Contents?: true

Size: 273 Bytes

Versions: 5

Compression:

Stored size: 273 Bytes

Contents

class AddUuidAndComputeIdToHost < ActiveRecord::Migration
  def self.up
    add_column :hosts, :uuid, :string
    add_column :hosts, :compute_resource_id, :integer
  end

  def self.down
    remove_column :hosts, :uuid
    remove_column :hosts, :compute_resource
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
foreman_discovery-1.0.0 test/foreman_app/db/migrate/20120126113850_add_uuid_and_compute_id_to_host.rb
foreman_discovery-1.0.0.rc4 test/foreman_app/db/migrate/20120126113850_add_uuid_and_compute_id_to_host.rb
foreman_discovery-1.0.0.rc3 test/foreman_app/db/migrate/20120126113850_add_uuid_and_compute_id_to_host.rb
foreman_discovery-1.0.0.rc2 test/foreman_app/db/migrate/20120126113850_add_uuid_and_compute_id_to_host.rb
foreman_discovery-1.0.0.rc1 test/foreman_app/db/migrate/20120126113850_add_uuid_and_compute_id_to_host.rb