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