Sha256: caa1a4979b6b36d4905f54b09527d19b8bbf954f830b9d85a2a8884628349eb4

Contents?: true

Size: 475 Bytes

Versions: 24

Compression:

Stored size: 475 Bytes

Contents

class CreateSaltModules < ActiveRecord::Migration
  def self.up
    create_table :salt_modules do |t|
      t.string :name, :default => '', :null => false
      t.timestamps
    end

    create_table 'hosts_salt_modules', :id => false do |t|
      t.column :host_id, :integer
      t.column :salt_module_id, :integer
    end

    add_index :salt_modules, :name, :unique => true
  end

  def self.down
    drop_table :salt_modules
    drop_table :hosts_salt_modules
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
foreman_salt-8.0.4 db/migrate/20140817210214_create_salt_modules.rb
foreman_salt-9.0.1 db/migrate/20140817210214_create_salt_modules.rb
foreman_salt-9.0.0 db/migrate/20140817210214_create_salt_modules.rb
foreman_salt-8.0.3 db/migrate/20140817210214_create_salt_modules.rb
foreman_salt-8.0.2 db/migrate/20140817210214_create_salt_modules.rb
foreman_salt-8.0.1 db/migrate/20140817210214_create_salt_modules.rb
foreman_salt-7.0.3 db/migrate/20140817210214_create_salt_modules.rb
foreman_salt-8.0.0 db/migrate/20140817210214_create_salt_modules.rb
foreman_salt-7.0.2 db/migrate/20140817210214_create_salt_modules.rb
foreman_salt-6.0.1 db/migrate/20140817210214_create_salt_modules.rb
foreman_salt-7.0.1 db/migrate/20140817210214_create_salt_modules.rb
foreman_salt-7.0.0 db/migrate/20140817210214_create_salt_modules.rb
foreman_salt-6.0.0 db/migrate/20140817210214_create_salt_modules.rb
foreman_salt-5.0.1 db/migrate/20140817210214_create_salt_modules.rb
foreman_salt-5.0.0 db/migrate/20140817210214_create_salt_modules.rb
foreman_salt-4.0.1 db/migrate/20140817210214_create_salt_modules.rb
foreman_salt-4.0.0 db/migrate/20140817210214_create_salt_modules.rb
foreman_salt-3.0.2 db/migrate/20140817210214_create_salt_modules.rb
foreman_salt-3.0.1 db/migrate/20140817210214_create_salt_modules.rb
foreman_salt-3.0.0 db/migrate/20140817210214_create_salt_modules.rb