20180518100316_email_forward_prefix_setting_issue_1730.rb 847 B

123456789101112131415161718192021222324252627282930
  1. # Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. class EmailForwardPrefixSettingIssue1730 < ActiveRecord::Migration[5.1]
  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: 'Ticket Subject Forward',
  8. name: 'ticket_subject_fwd',
  9. area: 'Email::Base',
  10. description: 'The text at the beginning of the subject in an email forward, e. g. FWD.',
  11. options: {
  12. form: [
  13. {
  14. display: '',
  15. null: true,
  16. name: 'ticket_subject_fwd',
  17. tag: 'input',
  18. },
  19. ],
  20. },
  21. state: 'FWD',
  22. preferences: {
  23. permission: ['admin.channel_email'],
  24. },
  25. frontend: false
  26. )
  27. end
  28. end