2013-01-29 17:48:43 +00:00
|
|
|
class AddCountersToMassBuild < ActiveRecord::Migration
|
|
|
|
def up
|
2014-01-21 04:51:49 +00:00
|
|
|
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
|
2013-01-29 17:48:43 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
remove_column :mass_builds, :success_count
|
|
|
|
remove_column :mass_builds, :build_canceled_count
|
2014-01-21 04:51:49 +00:00
|
|
|
change_column :mass_builds, :new_core, :boolean, default: false
|
2013-01-29 17:48:43 +00:00
|
|
|
end
|
|
|
|
end
|