Revision 2ec73490
Added by Tom Caspy over 8 years ago
db/migrate/20150819105725_add_lookup_value_match_to_host_and_hostgroup.rb | ||
---|---|---|
def up
|
||
add_column :hosts, :lookup_value_matcher, :string
|
||
add_column :hostgroups, :lookup_value_matcher, :string
|
||
Host::Managed.reset_column_information
|
||
Hostgroup.reset_column_information
|
||
|
||
Host::Managed.where(:type => 'Host::Managed').find_in_batches(:batch_size => 100) do |group|
|
||
group.each do |host|
|
Also available in: Unified diff
fixes #11571 - resetting column information in migration