Sha256: 05ba1ea6598e6300ff6d21411d7ccfa3cd80812ae837377ec62875803e916547

Contents?: true

Size: 447 Bytes

Versions: 136

Compression:

Stored size: 447 Bytes

Contents

class AddSmartProxyDownloadPolicy < ActiveRecord::Migration[4.2]
  def up
    #set default to on_demand, but update existing proxies to inherit
    add_column :smart_proxies, :download_policy, :string, :null => true
    SmartProxy.reset_column_information
    SmartProxy.all.each do |proxy|
      proxy.update(:download_policy => SmartProxy::DOWNLOAD_INHERIT)
    end
  end

  def down
    remove_column :smart_proxies, :download_policy
  end
end

Version data entries

136 entries across 136 versions & 1 rubygems

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