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.11.0.rc2 db/migrate/20160930150810_add_smart_proxy_download_policy.rb
katello-4.11.0.rc1 db/migrate/20160930150810_add_smart_proxy_download_policy.rb
katello-4.10.0 db/migrate/20160930150810_add_smart_proxy_download_policy.rb
katello-4.9.2 db/migrate/20160930150810_add_smart_proxy_download_policy.rb
katello-4.10.0.rc2 db/migrate/20160930150810_add_smart_proxy_download_policy.rb
katello-4.10.0.rc1 db/migrate/20160930150810_add_smart_proxy_download_policy.rb
katello-4.8.4 db/migrate/20160930150810_add_smart_proxy_download_policy.rb
katello-4.9.1 db/migrate/20160930150810_add_smart_proxy_download_policy.rb
katello-4.8.3 db/migrate/20160930150810_add_smart_proxy_download_policy.rb
katello-4.9.0 db/migrate/20160930150810_add_smart_proxy_download_policy.rb
katello-4.7.6 db/migrate/20160930150810_add_smart_proxy_download_policy.rb
katello-4.8.2 db/migrate/20160930150810_add_smart_proxy_download_policy.rb
katello-4.9.0.rc2 db/migrate/20160930150810_add_smart_proxy_download_policy.rb
katello-4.9.0.rc1 db/migrate/20160930150810_add_smart_proxy_download_policy.rb
katello-4.8.1 db/migrate/20160930150810_add_smart_proxy_download_policy.rb
katello-4.7.5 db/migrate/20160930150810_add_smart_proxy_download_policy.rb
katello-4.8.0 db/migrate/20160930150810_add_smart_proxy_download_policy.rb
katello-4.8.0.rc2 db/migrate/20160930150810_add_smart_proxy_download_policy.rb
katello-4.7.4 db/migrate/20160930150810_add_smart_proxy_download_policy.rb
katello-4.8.0.rc1 db/migrate/20160930150810_add_smart_proxy_download_policy.rb