[refs #819] migration
This commit is contained in:
parent
1f6b9dacc5
commit
4bb3f26877
|
@ -0,0 +1,13 @@
|
|||
class AddCountersToMassBuild < ActiveRecord::Migration
|
||||
def up
|
||||
add_column :mass_builds, :success_count, :integer, :default => 0, :null => false
|
||||
add_column :mass_builds, :build_canceled_count, :integer, :default => 0, :null => false
|
||||
change_column :mass_builds, :new_core, :boolean, :default => true
|
||||
end
|
||||
|
||||
def down
|
||||
remove_column :mass_builds, :success_count
|
||||
remove_column :mass_builds, :build_canceled_count
|
||||
change_column :mass_builds, :new_core, :boolean, :default => false
|
||||
end
|
||||
end
|
|
@ -266,7 +266,7 @@ ActiveRecord::Schema.define(:version => 20130129145833) do
|
|||
t.text "projects_list"
|
||||
t.integer "missed_projects_count", :default => 0, :null => false
|
||||
t.text "missed_projects_list"
|
||||
t.boolean "new_core", :default => false
|
||||
t.boolean "new_core", :default => true
|
||||
t.integer "success_count", :default => 0, :null => false
|
||||
t.integer "build_canceled_count", :default => 0, :null => false
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue