Project

General

Profile

Download (319 Bytes) Statistics
| Branch: | Tag: | Revision:
class ChangeHostManagedDefaultToFalse < ActiveRecord::Migration
def up
Host::Base.unscoped.where(:managed => nil).update_all(:managed => false)
change_column :hosts, :managed, :boolean, :null => false, :default => false
end

def down
change_column :hosts, :managed, :boolean, :null => true
end
end

(199-199/286)