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.14.2 db/migrate/20140423191446_add_anonymous_providers_to_orgs.rb
katello-4.15.0 db/migrate/20140423191446_add_anonymous_providers_to_orgs.rb
katello-4.15.0.rc2 db/migrate/20140423191446_add_anonymous_providers_to_orgs.rb
katello-4.15.0.rc1 db/migrate/20140423191446_add_anonymous_providers_to_orgs.rb
katello-4.14.1 db/migrate/20140423191446_add_anonymous_providers_to_orgs.rb
katello-4.14.0 db/migrate/20140423191446_add_anonymous_providers_to_orgs.rb
katello-4.14.0.rc3 db/migrate/20140423191446_add_anonymous_providers_to_orgs.rb
katello-4.14.0.rc2 db/migrate/20140423191446_add_anonymous_providers_to_orgs.rb
katello-4.14.0.rc1.1 db/migrate/20140423191446_add_anonymous_providers_to_orgs.rb
katello-4.14.0.rc1 db/migrate/20140423191446_add_anonymous_providers_to_orgs.rb
katello-4.13.1 db/migrate/20140423191446_add_anonymous_providers_to_orgs.rb
katello-4.13.0 db/migrate/20140423191446_add_anonymous_providers_to_orgs.rb
katello-4.12.1 db/migrate/20140423191446_add_anonymous_providers_to_orgs.rb
katello-4.13.0.rc1 db/migrate/20140423191446_add_anonymous_providers_to_orgs.rb
katello-4.12.0 db/migrate/20140423191446_add_anonymous_providers_to_orgs.rb
katello-4.12.0.rc3 db/migrate/20140423191446_add_anonymous_providers_to_orgs.rb
katello-4.12.0.rc2 db/migrate/20140423191446_add_anonymous_providers_to_orgs.rb
katello-4.12.0.rc1 db/migrate/20140423191446_add_anonymous_providers_to_orgs.rb
katello-4.11.1 db/migrate/20140423191446_add_anonymous_providers_to_orgs.rb
katello-4.11.0 db/migrate/20140423191446_add_anonymous_providers_to_orgs.rb