Sha256: 4ff92d930155e7e4721a4066e74f5b0840861e372daa27d32fcfe39336b9ab7d

Contents?: true

Size: 317 Bytes

Versions: 195

Compression:

Stored size: 317 Bytes

Contents

class AddAnonymousProvidersToOrgs < ActiveRecord::Migration[4.2]
  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

195 entries across 195 versions & 1 rubygems

Version Path
katello-4.7.3 db/migrate/20140423191446_add_anonymous_providers_to_orgs.rb
katello-4.7.2 db/migrate/20140423191446_add_anonymous_providers_to_orgs.rb
katello-4.7.1 db/migrate/20140423191446_add_anonymous_providers_to_orgs.rb
katello-4.6.2.1 db/migrate/20140423191446_add_anonymous_providers_to_orgs.rb
katello-4.6.2 db/migrate/20140423191446_add_anonymous_providers_to_orgs.rb
katello-4.7.0 db/migrate/20140423191446_add_anonymous_providers_to_orgs.rb
katello-4.6.1 db/migrate/20140423191446_add_anonymous_providers_to_orgs.rb
katello-4.7.0.rc2 db/migrate/20140423191446_add_anonymous_providers_to_orgs.rb
katello-4.7.0.rc1 db/migrate/20140423191446_add_anonymous_providers_to_orgs.rb
katello-4.4.2.2 db/migrate/20140423191446_add_anonymous_providers_to_orgs.rb
katello-4.4.2.1 db/migrate/20140423191446_add_anonymous_providers_to_orgs.rb
katello-4.4.2 db/migrate/20140423191446_add_anonymous_providers_to_orgs.rb
katello-4.5.1 db/migrate/20140423191446_add_anonymous_providers_to_orgs.rb
katello-4.6.0 db/migrate/20140423191446_add_anonymous_providers_to_orgs.rb
katello-4.6.0.rc2 db/migrate/20140423191446_add_anonymous_providers_to_orgs.rb
katello-4.6.0.rc1 db/migrate/20140423191446_add_anonymous_providers_to_orgs.rb
katello-4.5.0 db/migrate/20140423191446_add_anonymous_providers_to_orgs.rb
katello-4.5.0.rc2 db/migrate/20140423191446_add_anonymous_providers_to_orgs.rb
katello-4.4.1 db/migrate/20140423191446_add_anonymous_providers_to_orgs.rb
katello-4.5.0.rc1 db/migrate/20140423191446_add_anonymous_providers_to_orgs.rb