20200401000001_service_now_config.rb 1.0 KB

123456789101112131415161718192021222324252627282930
  1. # Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
  2. class ServiceNowConfig < ActiveRecord::Migration[4.2]
  3. def up
  4. # return if it's a new setup
  5. return if !Setting.exists?(name: 'system_init_done')
  6. Setting.create_if_not_exists(
  7. title: 'Defines postmaster filter.',
  8. name: '5400_postmaster_filter_service_now_check',
  9. area: 'Postmaster::PreFilter',
  10. description: 'Defines postmaster filter to identify service now mails for correct follow-ups.',
  11. options: {},
  12. state: 'Channel::Filter::ServiceNowCheck',
  13. frontend: false
  14. )
  15. Setting.create_if_not_exists(
  16. title: 'Defines postmaster filter.',
  17. name: '5401_postmaster_filter_service_now_check',
  18. area: 'Postmaster::PostFilter',
  19. description: 'Defines postmaster filter to identify service now mails for correct follow-ups.',
  20. options: {},
  21. state: 'Channel::Filter::ServiceNowCheck',
  22. frontend: false
  23. )
  24. end
  25. end