Sha256: b34e69af790c55b0880ce6541fefee233c6bfe839aab90bf432040f86d632116

Contents?: true

Size: 312 Bytes

Versions: 54

Compression:

Stored size: 312 Bytes

Contents

class AddAnonymousProvidersToOrgs < ActiveRecord::Migration
  def up
    Organization.all.each do |org|
      if org.anonymous_provider.nil?
        Katello::Provider.create!(:name => Katello::Provider::ANONYMOUS, :provider_type => Katello::Provider::ANONYMOUS, :organization => org)
      end
    end
  end
end

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
katello-3.3.0 db/migrate/20140423191446_add_anonymous_providers_to_orgs.rb
katello-3.3.0.rc2 db/migrate/20140423191446_add_anonymous_providers_to_orgs.rb
katello-3.3.0.rc1.1 db/migrate/20140423191446_add_anonymous_providers_to_orgs.rb
katello-3.3.0.rc1 db/migrate/20140423191446_add_anonymous_providers_to_orgs.rb
katello-3.2.1.1 db/migrate/20140423191446_add_anonymous_providers_to_orgs.rb
katello-3.2.1 db/migrate/20140423191446_add_anonymous_providers_to_orgs.rb
katello-3.2.0 db/migrate/20140423191446_add_anonymous_providers_to_orgs.rb
katello-3.2.0.rc3 db/migrate/20140423191446_add_anonymous_providers_to_orgs.rb
katello-3.2.0.rc2 db/migrate/20140423191446_add_anonymous_providers_to_orgs.rb
katello-3.2.0.rc1.1 db/migrate/20140423191446_add_anonymous_providers_to_orgs.rb
katello-3.2.0.rc1 db/migrate/20140423191446_add_anonymous_providers_to_orgs.rb
katello-3.1.0.1 db/migrate/20140423191446_add_anonymous_providers_to_orgs.rb
katello-3.1.0 db/migrate/20140423191446_add_anonymous_providers_to_orgs.rb
katello-3.1.0.rc2.1 db/migrate/20140423191446_add_anonymous_providers_to_orgs.rb
katello-3.0.2 db/migrate/20140423191446_add_anonymous_providers_to_orgs.rb
katello-2.4.5 db/migrate/20140423191446_add_anonymous_providers_to_orgs.rb
katello-3.1.0.rc1 db/migrate/20140423191446_add_anonymous_providers_to_orgs.rb
katello-3.0.1 db/migrate/20140423191446_add_anonymous_providers_to_orgs.rb
katello-2.4.4 db/migrate/20140423191446_add_anonymous_providers_to_orgs.rb
katello-3.0.0 db/migrate/20140423191446_add_anonymous_providers_to_orgs.rb