20181010000000_setting_add_sipgate_alternative_fqdn.rb 878 B

1234567891011121314151617181920212223242526272829303132
  1. # Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
  2. class SettingAddSipgateAlternativeFqdn < 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: 'sipgate.io alternative fqdn',
  8. name: 'sipgate_alternative_fqdn',
  9. area: 'Integration::Sipgate::Expert',
  10. description: 'Alternative FQDN for callbacks if you operate Zammad in internal network.',
  11. options: {
  12. form: [
  13. {
  14. display: '',
  15. null: false,
  16. name: 'sipgate_alternative_fqdn',
  17. tag: 'input',
  18. },
  19. ],
  20. },
  21. state: '',
  22. preferences: {
  23. permission: ['admin.integration'],
  24. },
  25. frontend: false
  26. )
  27. end
  28. end