20180913000001_setting_add_system_bcc.rb 580 B

12345678910111213141516171819
  1. class SettingAddSystemBcc < 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: 'Bcc address for all outgoing emails',
  7. name: 'system_bcc',
  8. area: 'Email::Enhanced',
  9. description: 'To archive all outgoing emails from Zammad to external, you can store a bcc email address here.',
  10. options: {},
  11. state: '',
  12. preferences: { online_service_disable: true },
  13. frontend: false
  14. )
  15. end
  16. end