diff --git a/db/migrate/20130129145833_add_counters_to_mass_build.rb b/db/migrate/20130129145833_add_counters_to_mass_build.rb new file mode 100644 index 000000000..f67ca4214 --- /dev/null +++ b/db/migrate/20130129145833_add_counters_to_mass_build.rb @@ -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 diff --git a/db/schema.rb b/db/schema.rb index 922cffb18..d2a3da177 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -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