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