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

