From 77845adb51bd3665d20c102e850986fb4a88ef53 Mon Sep 17 00:00:00 2001 From: Vokhmin Alexey V Date: Tue, 29 Jan 2013 18:17:15 +0400 Subject: [PATCH] #860: update migration --- .../20130128123151_add_container_status_to_build_list.rb | 5 +++++ 1 file changed, 5 insertions(+) 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