2016-06-09 08:39:16 -04:00
|
|
|
# rubocop:disable all
|
2013-01-25 04:08:22 -05:00
|
|
|
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
|