Sha256: 78ada94999d6929f16da781740a5098605c7eaf6101431c91bb94ab5d2f78fce

Contents?: true

Size: 311 Bytes

Versions: 36

Compression:

Stored size: 311 Bytes

Contents

# Added in theforeman/foreman#bb07c3b1cf
class AddEnvironmentPuppetclassId < ActiveRecord::Migration[5.2]
  def change
    add_index :environment_classes, %i[environment_id puppetclass_id]
    remove_index(:environment_classes, :environment_id) if index_exists?(:environment_classes, :environment_id)
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
foreman_puppet-8.0.0 db/migrate_foreman/20181023112532_add_environment_puppetclass_id.foreman_puppet.rb
foreman_puppet-6.4.0 db/migrate_foreman/20181023112532_add_environment_puppetclass_id.foreman_puppet.rb
foreman_puppet-7.0.0 db/migrate_foreman/20181023112532_add_environment_puppetclass_id.foreman_puppet.rb
foreman_puppet-6.3.0 db/migrate_foreman/20181023112532_add_environment_puppetclass_id.foreman_puppet.rb
foreman_puppet-6.2.0 db/migrate_foreman/20181023112532_add_environment_puppetclass_id.foreman_puppet.rb
foreman_puppet-6.1.1 db/migrate_foreman/20181023112532_add_environment_puppetclass_id.foreman_puppet.rb
foreman_puppet-5.1.3 db/migrate_foreman/20181023112532_add_environment_puppetclass_id.foreman_puppet.rb
foreman_puppet-6.1.0 db/migrate_foreman/20181023112532_add_environment_puppetclass_id.foreman_puppet.rb
foreman_puppet-6.0.1 db/migrate_foreman/20181023112532_add_environment_puppetclass_id.foreman_puppet.rb
foreman_puppet-6.0.0 db/migrate_foreman/20181023112532_add_environment_puppetclass_id.foreman_puppet.rb
foreman_puppet-5.1.2 db/migrate_foreman/20181023112532_add_environment_puppetclass_id.foreman_puppet.rb
foreman_puppet-4.1.1 db/migrate_foreman/20181023112532_add_environment_puppetclass_id.foreman_puppet.rb
foreman_puppet-5.1.1 db/migrate_foreman/20181023112532_add_environment_puppetclass_id.foreman_puppet.rb
foreman_puppet-5.1.0 db/migrate_foreman/20181023112532_add_environment_puppetclass_id.foreman_puppet.rb
foreman_puppet-4.1.0 db/migrate_foreman/20181023112532_add_environment_puppetclass_id.foreman_puppet.rb
foreman_puppet-4.0.4 db/migrate_foreman/20181023112532_add_environment_puppetclass_id.foreman_puppet.rb
foreman_puppet-5.0.0 db/migrate_foreman/20181023112532_add_environment_puppetclass_id.foreman_puppet.rb
foreman_puppet-4.0.3 db/migrate_foreman/20181023112532_add_environment_puppetclass_id.foreman_puppet.rb
foreman_puppet-4.0.2 db/migrate_foreman/20181023112532_add_environment_puppetclass_id.foreman_puppet.rb
foreman_puppet-3.0.7 db/migrate_foreman/20181023112532_add_environment_puppetclass_id.foreman_puppet.rb