Sha256: 9cb05ef1749ee7e7561b8498b18b59f736313388e5473deb81ef89942fc2eb9a

Contents?: true

Size: 267 Bytes

Versions: 5

Compression:

Stored size: 267 Bytes

Contents

class AddAncestryToHostgroup < ActiveRecord::Migration
  def self.up
    add_column :hostgroups, :ancestry, :string
    add_index :hostgroups, :ancestry
  end

  def self.down
    remove_index :hostgroups, :ancestry
    remove_column :hostgroups, :ancestry
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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