foreman/db/migrate/20090916053824_change_host_build_default_to_false.rb @ 8a65dff7
363141af | Ohad Levy | class ChangeHostBuildDefaultToFalse < ActiveRecord::Migration
|
|
def self.up
|
|||
change_column :hosts, :build, :boolean, :default => false
|
|||
Host.find_each {|h| h.update_attribute :build, false}
|
|||
end
|
|||
def self.down
|
|||
change_column :hosts, :build, :boolean, :default => true
|
|||
end
|
|||
end
|