gitlabhq/db/migrate/20130125090214_add_user_permissions.rb
2013-01-25 11:08:22 +02:00

12 lines
332 B
Ruby

class AddUserPermissions < ActiveRecord::Migration
def up
add_column :users, :can_create_group, :boolean, default: true, null: false
add_column :users, :can_create_team, :boolean, default: true, null: false
end
def down
remove_column :users, :can_create_group
remove_column :users, :can_create_team
end
end