[refs #819] migration

This commit is contained in:
Alexander Machehin 2013-01-29 23:48:43 +06:00
parent 1f6b9dacc5
commit 4bb3f26877
2 changed files with 14 additions and 1 deletions

View File

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

View File

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