diff --git a/db/migrate/20130128123151_add_container_status_to_build_list.rb b/db/migrate/20130128123151_add_container_status_to_build_list.rb index 7df2c7e40..054b40b39 100644 --- a/db/migrate/20130128123151_add_container_status_to_build_list.rb +++ b/db/migrate/20130128123151_add_container_status_to_build_list.rb @@ -1,7 +1,12 @@ class AddContainerStatusToBuildList < ActiveRecord::Migration + class BuildList < ActiveRecord::Base + WAITING_FOR_RESPONSE = 4000 + end + def up add_column :build_lists, :container_status, :integer remove_column :build_lists, :container_path + BuildList.where(:container_status => nil).update_all(:container_status => BuildList::WAITING_FOR_RESPONSE) end def down