2012-05-05 11:43:10 +01:00
|
|
|
class AddBuildPriorityToUsers < ActiveRecord::Migration
|
|
|
|
def up
|
2014-01-21 04:51:49 +00:00
|
|
|
add_column :users, :build_priority, :integer, default: 50
|
|
|
|
User.update_all build_priority: 50
|
2012-05-05 11:43:10 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
remove_column :users, :build_priority
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|