rosa-build/db/migrate/20140709194335_add_status_t...

14 lines
394 B
Ruby
Raw Normal View History

2014-07-09 21:24:41 +01:00
class AddStatusToMassBuilds < ActiveRecord::Migration
def up
# Sets SUCCESS for all current builds
add_column :mass_builds, :status, :integer, null: false, default: 0 # SUCCESS
# Sets BUILD_PENDING for all new builds
change_column :mass_builds, :status, :integer, null: false, default: 2000 # BUILD_PENDING
end
def down
remove_column :mass_builds, :status
end
end