2016-06-16 23:09:34 +05:30
|
|
|
# rubocop:disable all
|
2014-09-02 18:07:02 +05:30
|
|
|
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
|