2018-10-10 13:26:32 +00:00
|
|
|
class SettingAddSipgateAlternativeFqdn < 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-10-10 13:26:32 +00:00
|
|
|
|
|
|
|
Setting.create_if_not_exists(
|
2018-12-19 17:31:51 +00:00
|
|
|
title: 'sipgate.io alternative fqdn',
|
|
|
|
name: 'sipgate_alternative_fqdn',
|
|
|
|
area: 'Integration::Sipgate::Expert',
|
2018-10-10 13:26:32 +00:00
|
|
|
description: 'Alternative FQDN for callbacks if you operate Zammad in internal network.',
|
2018-12-19 17:31:51 +00:00
|
|
|
options: {
|
2018-10-10 13:26:32 +00:00
|
|
|
form: [
|
|
|
|
{
|
|
|
|
display: '',
|
2018-12-19 17:31:51 +00:00
|
|
|
null: false,
|
|
|
|
name: 'sipgate_alternative_fqdn',
|
|
|
|
tag: 'input',
|
2018-10-10 13:26:32 +00:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
state: '',
|
2018-10-10 13:26:32 +00:00
|
|
|
preferences: {
|
|
|
|
permission: ['admin.integration'],
|
|
|
|
},
|
2018-12-19 17:31:51 +00:00
|
|
|
frontend: false
|
2018-10-10 13:26:32 +00:00
|
|
|
)
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|