Sha256: 8eda67e42e69117ed84f598ceecc341a853b4d543abc6436175a82c4aa6844b5

Contents?: true

Size: 444 Bytes

Versions: 5

Compression:

Stored size: 444 Bytes

Contents

class CreateEnvironments < ActiveRecord::Migration
  def self.up
    create_table :environments do |t|
      t.string :name, :null => false
      t.timestamps
    end
    create_table :environments_puppetclasses, :id => false do |t|
      t.references :puppetclass, :null => false
      t.references :environment, :null => false
    end
 
  end

  def self.down
    drop_table :environments
    drop_table :environments_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/20090722141107_create_environments.rb
foreman_discovery-1.0.0.rc4 test/foreman_app/db/migrate/20090722141107_create_environments.rb
foreman_discovery-1.0.0.rc3 test/foreman_app/db/migrate/20090722141107_create_environments.rb
foreman_discovery-1.0.0.rc2 test/foreman_app/db/migrate/20090722141107_create_environments.rb
foreman_discovery-1.0.0.rc1 test/foreman_app/db/migrate/20090722141107_create_environments.rb