Project

General

Profile

« Previous | Next » 

Revision 2ec73490

Added by Tom Caspy over 8 years ago

fixes #11571 - resetting column information in migration

View differences:

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