20180913000001_setting_add_system_bcc.rb 657 B

123456789101112131415161718192021
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class SettingAddSystemBcc < 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: 'Bcc address for all outgoing emails',
  8. name: 'system_bcc',
  9. area: 'Email::Enhanced',
  10. description: 'To archive all outgoing emails from Zammad to external, you can store a bcc email address here.',
  11. options: {},
  12. state: '',
  13. preferences: { online_service_disable: true },
  14. frontend: false
  15. )
  16. end
  17. end