20181203000000_setting_add_email_full_quote_header.rb 1004 B

12345678910111213141516171819202122232425262728293031323334
  1. class SettingAddEmailFullQuoteHeader < 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: 'Email - quote header',
  7. name: 'ui_ticket_zoom_article_email_full_quote_header',
  8. area: 'UI::TicketZoom',
  9. description: 'Enable if you want a timestamped reply header to be automatically inserted in front of quoted messages.',
  10. options: {
  11. form: [
  12. {
  13. display: '',
  14. null: true,
  15. name: 'ui_ticket_zoom_article_email_full_quote_header',
  16. tag: 'boolean',
  17. translate: true,
  18. options: {
  19. true => 'yes',
  20. false => 'no',
  21. },
  22. },
  23. ],
  24. },
  25. state: true,
  26. preferences: {
  27. prio: 240,
  28. permission: ['admin.ui'],
  29. },
  30. frontend: true
  31. )
  32. end
  33. end