Sha256: bb94d93bf4e5f0ff9a2d6ac84befb71cc72c8df1385337dbb2d0416d67213cee

Contents?: true

Size: 187 Bytes

Versions: 10

Compression:

Stored size: 187 Bytes

Contents

class FillDiscoveryAttributeSetsForExistingHosts < ActiveRecord::Migration
  def up
    Host::Discovered.scoped.each { |host| host.populate_fields_from_facts}
  end

  def down
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
foreman_discovery-4.1.2 db/migrate/20141223142759_fill_discovery_attribute_sets_for_existing_hosts.rb
foreman_discovery-4.1.1 db/migrate/20141223142759_fill_discovery_attribute_sets_for_existing_hosts.rb
foreman_discovery-4.1.0 db/migrate/20141223142759_fill_discovery_attribute_sets_for_existing_hosts.rb
foreman_discovery-4.0.0 db/migrate/20141223142759_fill_discovery_attribute_sets_for_existing_hosts.rb
foreman_discovery-2.0.2 db/migrate/20141223142759_fill_discovery_attribute_sets_for_existing_hosts.rb
foreman_discovery-2.0.1 db/migrate/20141223142759_fill_discovery_attribute_sets_for_existing_hosts.rb
foreman_discovery-3.0.0 db/migrate/20141223142759_fill_discovery_attribute_sets_for_existing_hosts.rb
foreman_discovery-2.0.0 db/migrate/20141223142759_fill_discovery_attribute_sets_for_existing_hosts.rb
foreman_discovery-2.0.0.rc2 db/migrate/20141223142759_fill_discovery_attribute_sets_for_existing_hosts.rb
foreman_discovery-2.0.0.rc1 db/migrate/20141223142759_fill_discovery_attribute_sets_for_existing_hosts.rb