20200401000001_service_now_config.rb 970 B

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