Sha256: 364a132e3107932767d7aa12c7a975d904a466b8d12dbe1da19b19292c9ebd8f
Contents?: true
Size: 418 Bytes
Versions: 21
Compression:
Stored size: 418 Bytes
Contents
class AddEnvironmentsToModules < ActiveRecord::Migration def up create_table 'salt_module_environments' do |t| t.references :salt_module t.references :salt_environment end environments = ForemanSalt::SaltEnvironment.all ForemanSalt::SaltModule.all.each do |state| state.salt_environments << environments end end def down drop_table :salt_module_environments end end
Version data entries
21 entries across 21 versions & 1 rubygems