roles.rb 709 B

123456789101112131415161718192021222324252627
  1. Role.create_if_not_exists(
  2. id: 1,
  3. name: 'Admin',
  4. note: 'To configure your system.',
  5. preferences: {},
  6. default_at_signup: false,
  7. updated_by_id: 1,
  8. created_by_id: 1
  9. )
  10. Role.create_if_not_exists(
  11. id: 2,
  12. name: 'Agent',
  13. note: 'To work on Tickets.',
  14. default_at_signup: false,
  15. preferences: {},
  16. updated_by_id: 1,
  17. created_by_id: 1
  18. )
  19. Role.create_if_not_exists(
  20. id: 3,
  21. name: 'Customer',
  22. note: 'People who create Tickets ask for help.',
  23. preferences: {},
  24. default_at_signup: true,
  25. updated_by_id: 1,
  26. created_by_id: 1
  27. )