Sha256: d476c0676e6e14eb67e44b19e6aa7111b6e8792fe2d08e8782b620aaac2482e4
Contents?: true
Size: 559 Bytes
Versions: 32
Compression:
Stored size: 559 Bytes
Contents
class CreateHostgroupsPuppetclasses < ActiveRecord::Migration[6.0] def up # this table is later renamed into hostgroup_classes and thus we don't want to create it if it exists under the later name return if table_exists?(:hostgroups_puppetclasses) || table_exists?(:hostgroup_classes) create_table :hostgroups_puppetclasses, id: false 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
32 entries across 32 versions & 1 rubygems