Sha256: fe6b33d156463953a83c9758cc24475b2f37a0df80b7db1601284e04246eb561

Contents?: true

Size: 361 Bytes

Versions: 4

Compression:

Stored size: 361 Bytes

Contents

class CreateHostgroupsPuppetclasses < ActiveRecord::Migration[6.0]
  def up
    create_table :hostgroups_puppetclasses, id: false, if_not_exists: true do |t|
      t.references :hostgroup, foreign_key: true, null: false
      t.references :puppetclass, foreign_key: true, null: false
    end
  end

  def down
    drop_table :hostgroups_puppetclasses
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
foreman_puppet-3.0.1 db/migrate_foreman/20090905150132_create_hostgroups_puppetclasses.foreman_puppet.rb
foreman_puppet-2.0.2 db/migrate_foreman/20090905150132_create_hostgroups_puppetclasses.foreman_puppet.rb
foreman_puppet-2.0.0 db/migrate_foreman/20090905150132_create_hostgroups_puppetclasses.foreman_puppet.rb
foreman_puppet-2.0.0.alpha.2 db/migrate_foreman/20090905150132_create_hostgroups_puppetclasses.rb