#860: update migration
This commit is contained in:
parent
4a94dff142
commit
77845adb51
|
@ -1,7 +1,12 @@
|
||||||
class AddContainerStatusToBuildList < ActiveRecord::Migration
|
class AddContainerStatusToBuildList < ActiveRecord::Migration
|
||||||
|
class BuildList < ActiveRecord::Base
|
||||||
|
WAITING_FOR_RESPONSE = 4000
|
||||||
|
end
|
||||||
|
|
||||||
def up
|
def up
|
||||||
add_column :build_lists, :container_status, :integer
|
add_column :build_lists, :container_status, :integer
|
||||||
remove_column :build_lists, :container_path
|
remove_column :build_lists, :container_path
|
||||||
|
BuildList.where(:container_status => nil).update_all(:container_status => BuildList::WAITING_FOR_RESPONSE)
|
||||||
end
|
end
|
||||||
|
|
||||||
def down
|
def down
|
||||||
|
|
Loading…
Reference in New Issue