Sha256: a865eb87ba20833b833a32a187dfbe2e79774ff4dfdb90ec3d115b1504c659bb
Contents?: true
Size: 530 Bytes
Versions: 25
Compression:
Stored size: 530 Bytes
Contents
class CreateSaltEnvironments < ActiveRecord::Migration def self.up create_table :salt_environments do |t| t.string :name, :default => '', :null => false t.timestamps end add_column :hosts, :salt_environment_id, :integer add_column :hostgroups, :salt_environment_id, :integer add_index :salt_environments, :name, :unique => true end def self.down remove_column :hosts, :salt_environment_id remove_column :hostgroups, :salt_environment_id drop_table :salt_environments end end
Version data entries
25 entries across 25 versions & 1 rubygems