Sha256: 0c7a9c08faaf196eef7f8e1489b22d62db156dd6ceba2c1a2c507773c829a164

Contents?: true

Size: 286 Bytes

Versions: 5

Compression:

Stored size: 286 Bytes

Contents

class CreateHostClass < ActiveRecord::Migration
  def self.up
    rename_table :hosts_puppetclasses, :host_classes
    add_column :host_classes, :id, :primary_key
  end

  def self.down
    remove_column :host_classes, :id
    rename_table :host_classes, :hosts_puppetclasses
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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