Sha256: 0558fc1df4397d85a81de2431b180d28c66ac9d578343aebede40aa6b3fe2dd5

Contents?: true

Size: 363 Bytes

Versions: 11

Compression:

Stored size: 363 Bytes

Contents

class AddEnvironmentToTemplateCombinations < ActiveRecord::Migration[4.2]
  def up
    add_reference :template_combinations, :environment, foreign_key: true unless column_exists?(:template_combinations, :environment_id)
  end

  def down
    remove_reference :template_combinations, :environment, foreign_key: true if ForemanPuppet.extracted_from_core?
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
foreman_puppet-1.0.5 db/migrate/20101121140000_add_environment_to_template_combinations.foreman_puppet.rb
foreman_puppet-1.0.4 db/migrate/20101121140000_add_environment_to_template_combinations.foreman_puppet.rb
foreman_puppet-1.0.3 db/migrate/20101121140000_add_environment_to_template_combinations.foreman_puppet.rb
foreman_puppet-1.0.2 db/migrate/20101121140000_add_environment_to_template_combinations.foreman_puppet.rb
foreman_puppet-1.0.1 db/migrate/20101121140000_add_environment_to_template_combinations.foreman_puppet.rb
foreman_puppet-1.0.0 db/migrate/20101121140000_add_environment_to_template_combinations.foreman_puppet.rb
foreman_puppet-1.0.0.rc.2 db/migrate/20101121140000_add_environment_to_template_combinations.foreman_puppet.rb
foreman_puppet-1.0.0.rc.1 db/migrate/20101121140000_add_environment_to_template_combinations.foreman_puppet.rb
foreman_puppet-0.1.0 db/migrate/20101121140000_add_environment_to_template_combinations.foreman_puppet.rb
foreman_puppet-0.0.2 db/migrate/20101121140000_add_environment_to_template_combinations.foreman_puppet.rb
foreman_puppet-0.0.1 db/migrate/20101121140000_add_environment_to_template_combinations.foreman_puppet.rb