Project

General

Profile

« Previous | Next » 

Revision f4459c11

Added by David Davis about 8 years ago

Refs #3809 - Turning on some rubocop cops

View differences:

db/migrate/20150514114044_migrate_ptables_to_templates.rb
remove_foreign_key "hostgroups", :name => "hostgroups_ptable_id_fk"
end
if foreign_key_exists?('hosts', :name => 'hosts_ptable_id_fk')
remove_foreign_key "hosts", :name => "hosts_ptable_id_fk"
remove_foreign_key "hosts", :name => "hosts_ptable_id_fk"
end
add_column :templates, :os_family, :string, :limit => 255
......
def down
remove_foreign_key "operatingsystems_ptables", :name => "operatingsystems_ptables_ptable_id_fk"
remove_foreign_key "hostgroups", :name => "hostgroups_ptable_id_fk"
remove_foreign_key "hosts", :name => "hosts_ptable_id_fk"
remove_foreign_key "hosts", :name => "hosts_ptable_id_fk"
Ptable.all.each do |new_ptable|
say "migrating partition table #{new_ptable.name} down"
old_ptable = FakeOldPtable.new

Also available in: Unified diff