Sha256: dd2e47766e1651203e0e41a1811f5589c884ebfecd09eb101789f220200bb85b
Contents?: true
Size: 458 Bytes
Versions: 59
Compression:
Stored size: 458 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_attributes(:download_policy => SmartProxy::DOWNLOAD_INHERIT) end end def down remove_column :smart_proxies, :download_policy end end
Version data entries
59 entries across 59 versions & 1 rubygems