rosa-build/db/migrate/20130129145833_add_counters...

14 lines
511 B
Ruby
Raw Normal View History

2013-01-29 17:48:43 +00:00
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