summaryrefslogtreecommitdiff
path: root/db/migrate/20130125090214_add_user_permissions.rb
blob: 1350eadb60efedb87a919646bc1ba4ebf3c5b55a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# rubocop:disable all
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