Sha256: a1dd428a1010390990594c1e331e1197a8841e33f4d6684aab1cb31096824d4e

Contents?: true

Size: 356 Bytes

Versions: 27

Compression:

Stored size: 356 Bytes

Contents

class DropEnvironmentFromHostAndHg < ActiveRecord::Migration[6.0]
  def up
    remove_column(:hostgroups, :environment_id) if column_exists?(:hostgroups, :environment_id)
    remove_column(:hosts, :environment_id) if column_exists?(:hosts, :environment_id)
  end

  # This is just to clean up core, we do not want to add the columns again on uninstall
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
foreman_puppet-4.0.2 db/migrate/20220421204325_drop_environment_from_host_and_hg.foreman_puppet.rb
foreman_puppet-3.0.7 db/migrate/20220421204325_drop_environment_from_host_and_hg.foreman_puppet.rb
foreman_puppet-2.0.7 db/migrate/20220421204325_drop_environment_from_host_and_hg.foreman_puppet.rb
foreman_puppet-4.0.1 db/migrate/20220421204325_drop_environment_from_host_and_hg.foreman_puppet.rb
foreman_puppet-4.0.0 db/migrate/20220421204325_drop_environment_from_host_and_hg.foreman_puppet.rb
foreman_puppet-3.0.6 db/migrate/20220421204325_drop_environment_from_host_and_hg.foreman_puppet.rb
foreman_puppet-2.0.6 db/migrate/20220421204325_drop_environment_from_host_and_hg.foreman_puppet.rb