2021-06-01 12:20:20 +00:00
|
|
|
# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
|
|
|
|
|
2018-09-13 07:09:05 +00:00
|
|
|
class SettingAddSystemBcc < ActiveRecord::Migration[5.1]
|
|
|
|
def up
|
|
|
|
|
|
|
|
# return if it's a new setup
|
2020-08-03 08:35:43 +00:00
|
|
|
return if !Setting.exists?(name: 'system_init_done')
|
2018-09-13 07:09:05 +00:00
|
|
|
|
|
|
|
Setting.create_if_not_exists(
|
2018-12-19 17:31:51 +00:00
|
|
|
title: 'Bcc address for all outgoing emails',
|
|
|
|
name: 'system_bcc',
|
|
|
|
area: 'Email::Enhanced',
|
2018-09-13 07:09:05 +00:00
|
|
|
description: 'To archive all outgoing emails from Zammad to external, you can store a bcc email address here.',
|
2018-12-19 17:31:51 +00:00
|
|
|
options: {},
|
|
|
|
state: '',
|
2018-09-13 07:09:05 +00:00
|
|
|
preferences: { online_service_disable: true },
|
2018-12-19 17:31:51 +00:00
|
|
|
frontend: false
|
2018-09-13 07:09:05 +00:00
|
|
|
)
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|