Sha256: e7b08a9261faebb587acf401467a725ffe14717576ee2ffa6bc9889ac125538e

Contents?: true

Size: 184 Bytes

Versions: 3

Compression:

Stored size: 184 Bytes

Contents

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

  def down
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
foreman_discovery-5.0.2 db/migrate/20141223142759_fill_discovery_attribute_sets_for_existing_hosts.rb
foreman_discovery-5.0.1 db/migrate/20141223142759_fill_discovery_attribute_sets_for_existing_hosts.rb
foreman_discovery-5.0.0 db/migrate/20141223142759_fill_discovery_attribute_sets_for_existing_hosts.rb