20220929130033_ticket_overview_ticket_limit_setting.rb 695 B

123456789101112131415161718192021
  1. # Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. class TicketOverviewTicketLimitSetting < ActiveRecord::Migration[6.1]
  3. def change
  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: 'Maximum number of ticket shown in overviews',
  8. name: 'ui_ticket_overview_ticket_limit',
  9. area: 'UI::TicketOverview::TicketLimit',
  10. description: 'Define the maximum number of ticket shown in overviews.',
  11. options: {},
  12. state: 2000,
  13. preferences: {
  14. permission: ['admin.overview'],
  15. },
  16. frontend: true
  17. )
  18. end
  19. end