20170418000001_validate_agent_limit.rb 583 B

12345678910111213141516171819
  1. # Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. class ValidateAgentLimit < ActiveRecord::Migration[4.2]
  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: 'Set limit of agents',
  8. name: 'system_agent_limit',
  9. area: 'Core::Online',
  10. description: 'Defines the limit of the agents.',
  11. options: {},
  12. state: false,
  13. preferences: { online_service_disable: true },
  14. frontend: false
  15. )
  16. end
  17. end