#860: update migration
This commit is contained in:
parent
4a94dff142
commit
77845adb51
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue