Sha256: fe742d19ce6b225278b87046bd1077908f25b55b587270f21c6ca3a0d02905cd

Contents?: true

Size: 279 Bytes

Versions: 5

Compression:

Stored size: 279 Bytes

Contents

class AddTaxonomyIdsToHosts < ActiveRecord::Migration
  def self.up
    add_column :hosts, :organization_id, :integer
    add_column :hosts, :location_id, :integer
  end

  def self.down
    remove_column :hosts, :organization_id
    remove_column :hosts, :location_id
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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