20210812000001_jira_config.rb 1001 B

123456789101112131415161718192021222324252627282930
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class JiraConfig < 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_jira_check',
  9. area: 'Postmaster::PreFilter',
  10. description: 'Defines postmaster filter to identify jira mails for correct follow-ups.',
  11. options: {},
  12. state: 'Channel::Filter::JiraCheck',
  13. frontend: false
  14. )
  15. Setting.create_if_not_exists(
  16. title: 'Defines postmaster filter.',
  17. name: '5401_postmaster_filter_jira_check',
  18. area: 'Postmaster::PostFilter',
  19. description: 'Defines postmaster filter to identify jira mails for correct follow-ups.',
  20. options: {},
  21. state: 'Channel::Filter::JiraCheck',
  22. frontend: false
  23. )
  24. end
  25. end