20181010000000_setting_add_sipgate_alternative_fqdn.rb 801 B

123456789101112131415161718192021222324252627282930
  1. class SettingAddSipgateAlternativeFqdn < ActiveRecord::Migration[5.1]
  2. def up
  3. # return if it's a new setup
  4. return if !Setting.find_by(name: 'system_init_done')
  5. Setting.create_if_not_exists(
  6. title: 'sipgate.io alternative fqdn',
  7. name: 'sipgate_alternative_fqdn',
  8. area: 'Integration::Sipgate::Expert',
  9. description: 'Alternative FQDN for callbacks if you operate Zammad in internal network.',
  10. options: {
  11. form: [
  12. {
  13. display: '',
  14. null: false,
  15. name: 'sipgate_alternative_fqdn',
  16. tag: 'input',
  17. },
  18. ],
  19. },
  20. state: '',
  21. preferences: {
  22. permission: ['admin.integration'],
  23. },
  24. frontend: false
  25. )
  26. end
  27. end