Sha256: 32c198ff0138b7f483daa1fa6e92274d54afd85b8e6425e436ab7910bd1f8f4b
Contents?: true
Size: 803 Bytes
Versions: 5
Compression:
Stored size: 803 Bytes
Contents
class AddSomeIndexes < ActiveRecord::Migration def self.up #environments_puppetclasses add_index :environments_puppetclasses, :puppetclass_id add_index :environments_puppetclasses, :environment_id #puppetclasses add_index :puppetclasses, :name #hostgroups_puppetclasses add_index :hostgroups_puppetclasses, :puppetclass_id add_index :hostgroups_puppetclasses, :hostgroup_id end def self.down #environments_puppetclasses remove_index :environments_puppetclasses, :puppetclass_id remove_index :environments_puppetclasses, :environment_id #puppetclasses remove_index :puppetclasses, :name #hostgroups_puppetclasses remove_index :hostgroups_puppetclasses, :puppetclass_id remove_index :hostgroups_puppetclasses, :hostgroup_id end end
Version data entries
5 entries across 5 versions & 1 rubygems