channels.rb 571 B

123456789101112131415161718192021222324252627
  1. Channel.create_if_not_exists(
  2. area: 'Email::Notification',
  3. options: {
  4. outbound: {
  5. adapter: 'smtp',
  6. options: {
  7. host: 'host.example.com',
  8. user: '',
  9. password: '',
  10. ssl: true,
  11. },
  12. },
  13. },
  14. group_id: 1,
  15. preferences: { online_service_disable: true },
  16. active: false,
  17. )
  18. Channel.create_if_not_exists(
  19. area: 'Email::Notification',
  20. options: {
  21. outbound: {
  22. adapter: 'sendmail',
  23. },
  24. },
  25. preferences: { online_service_disable: true },
  26. active: true,
  27. )