-
Notifications
You must be signed in to change notification settings - Fork 82
/
global_roles.rb
35 lines (31 loc) · 1 KB
/
global_roles.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# == Schema Information
#
# Table name: global_roles
#
# id :integer not null, primary key
# name :string(255) default(""), not null
# can_manage_all_courses :boolean default(FALSE), not null
# can_edit_system_configuration :boolean default(FALSE), not null
# builtin :boolean default(FALSE), not null
#
# Read about factories at https://github.com/thoughtbot/factory_bot
FactoryBot.define do
factory :global_role_admin do
name { "Administrator" }
can_manage_all_courses { true }
can_edit_system_configuration { true }
builtin { true }
end
factory :global_role_instructor do
name { "Instructor" }
can_manage_all_courses { false }
can_edit_system_configuration { false }
builtin { false }
end
factory :global_role_user do
name { "Regular User" }
can_manage_all_courses { false }
can_edit_system_configuration { false }
builtin { false }
end
end