20180518100316_email_forward_prefix_setting_issue_1730.rb 770 B

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