Sha256: 53d8e4e47ef4bdae00d35285912f049edb1db3ffbf0a1d571fef131055ff6984

Contents?: true

Size: 471 Bytes

Versions: 158

Compression:

Stored size: 471 Bytes

Contents

class AddHttpProxyPolicyToRepositoryRoot < ActiveRecord::Migration[5.2]
  def change
    add_column :katello_root_repositories, :http_proxy_policy, :string,
      default: Katello::RootRepository::GLOBAL_DEFAULT_HTTP_PROXY

    Katello::RootRepository.where(ignore_global_proxy: true).each do |repo|
      repo.update(http_proxy_policy: Katello::RootRepository::NO_DEFAULT_HTTP_PROXY)
    end

    remove_column :katello_root_repositories, :ignore_global_proxy
  end
end

Version data entries

158 entries across 158 versions & 1 rubygems

Version Path
katello-4.15.0.rc2 db/migrate/20190701174401_add_http_proxy_policy_to_repository_root.rb
katello-4.15.0.rc1 db/migrate/20190701174401_add_http_proxy_policy_to_repository_root.rb
katello-4.14.1 db/migrate/20190701174401_add_http_proxy_policy_to_repository_root.rb
katello-4.14.0 db/migrate/20190701174401_add_http_proxy_policy_to_repository_root.rb
katello-4.14.0.rc3 db/migrate/20190701174401_add_http_proxy_policy_to_repository_root.rb
katello-4.14.0.rc2 db/migrate/20190701174401_add_http_proxy_policy_to_repository_root.rb
katello-4.14.0.rc1.1 db/migrate/20190701174401_add_http_proxy_policy_to_repository_root.rb
katello-4.14.0.rc1 db/migrate/20190701174401_add_http_proxy_policy_to_repository_root.rb
katello-4.13.1 db/migrate/20190701174401_add_http_proxy_policy_to_repository_root.rb
katello-4.13.0 db/migrate/20190701174401_add_http_proxy_policy_to_repository_root.rb
katello-4.12.1 db/migrate/20190701174401_add_http_proxy_policy_to_repository_root.rb
katello-4.13.0.rc1 db/migrate/20190701174401_add_http_proxy_policy_to_repository_root.rb
katello-4.12.0 db/migrate/20190701174401_add_http_proxy_policy_to_repository_root.rb
katello-4.12.0.rc3 db/migrate/20190701174401_add_http_proxy_policy_to_repository_root.rb
katello-4.12.0.rc2 db/migrate/20190701174401_add_http_proxy_policy_to_repository_root.rb
katello-4.12.0.rc1 db/migrate/20190701174401_add_http_proxy_policy_to_repository_root.rb
katello-4.11.1 db/migrate/20190701174401_add_http_proxy_policy_to_repository_root.rb
katello-4.11.0 db/migrate/20190701174401_add_http_proxy_policy_to_repository_root.rb
katello-4.11.0.rc2 db/migrate/20190701174401_add_http_proxy_policy_to_repository_root.rb
katello-4.11.0.rc1 db/migrate/20190701174401_add_http_proxy_policy_to_repository_root.rb