20221012075517_rename_max_tabs_setting.rb 530 B

12345678910111213
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class RenameMaxTabsSetting < 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 = Setting.find_by(name: 'ui_task_mananger_max_task_count')
  7. setting.title = 'Maximum number of open tabs.'
  8. setting.description = 'Defines the maximum number of allowed open tabs before auto cleanup removes surplus tabs when creating new tabs.'
  9. setting.save!
  10. end
  11. end