#860: update migration

This commit is contained in:
Vokhmin Alexey V 2013-01-29 18:17:15 +04:00
parent 4a94dff142
commit 77845adb51
1 changed files with 5 additions and 0 deletions

View File

@ -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