rosa-build/db/migrate/20120505101650_add_build_pr...

12 lines
237 B
Ruby
Raw Normal View History

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
end
def down
remove_column :users, :build_priority
end
end