20160421000001_add_sipgate_integration.rb 958 B

12345678910111213141516171819202122232425262728293031323334353637
  1. class AddSipgateIntegration < ActiveRecord::Migration
  2. def up
  3. Setting.create_if_not_exists(
  4. title: 'sipgate.io integration',
  5. name: 'sipgate_integration',
  6. area: 'Integration::Switch',
  7. description: 'Define if sipgate.io (http://www.sipgate.io) is enabled or not.',
  8. options: {
  9. form: [
  10. {
  11. display: '',
  12. null: true,
  13. name: 'sipgate_integration',
  14. tag: 'boolean',
  15. options: {
  16. true => 'yes',
  17. false => 'no',
  18. },
  19. },
  20. ],
  21. },
  22. state: false,
  23. preferences: { prio: 1 },
  24. frontend: false
  25. )
  26. Setting.create_if_not_exists(
  27. title: 'sipgate.io config',
  28. name: 'sipgate_config',
  29. area: 'Integration::Sipgate',
  30. description: 'Define the sipgate.io config.',
  31. options: {},
  32. state: {},
  33. frontend: false,
  34. preferences: { prio: 2 },
  35. )
  36. end
  37. end