2017-04-26 11:28:32 +00:00
|
|
|
Role.create_if_not_exists(
|
2018-12-19 17:31:51 +00:00
|
|
|
id: 1,
|
|
|
|
name: 'Admin',
|
|
|
|
note: 'To configure your system.',
|
|
|
|
preferences: {
|
2017-04-26 11:28:32 +00:00
|
|
|
not: ['Customer'],
|
|
|
|
},
|
|
|
|
default_at_signup: false,
|
2018-12-19 17:31:51 +00:00
|
|
|
updated_by_id: 1,
|
|
|
|
created_by_id: 1
|
2017-04-26 11:28:32 +00:00
|
|
|
)
|
|
|
|
Role.create_if_not_exists(
|
2018-12-19 17:31:51 +00:00
|
|
|
id: 2,
|
|
|
|
name: 'Agent',
|
|
|
|
note: 'To work on Tickets.',
|
2017-04-26 11:28:32 +00:00
|
|
|
default_at_signup: false,
|
2018-12-19 17:31:51 +00:00
|
|
|
preferences: {
|
2017-04-26 11:28:32 +00:00
|
|
|
not: ['Customer'],
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
updated_by_id: 1,
|
|
|
|
created_by_id: 1
|
2017-04-26 11:28:32 +00:00
|
|
|
)
|
|
|
|
Role.create_if_not_exists(
|
2018-12-19 17:31:51 +00:00
|
|
|
id: 3,
|
|
|
|
name: 'Customer',
|
|
|
|
note: 'People who create Tickets ask for help.',
|
|
|
|
preferences: {
|
2017-11-23 08:09:44 +00:00
|
|
|
not: %w[Agent Admin],
|
2017-04-26 11:28:32 +00:00
|
|
|
},
|
|
|
|
default_at_signup: true,
|
2018-12-19 17:31:51 +00:00
|
|
|
updated_by_id: 1,
|
|
|
|
created_by_id: 1
|
2017-04-26 11:28:32 +00:00
|
|
|
)
|