20210827133800_issue_3707_checkmk.rb 1.2 KB

1234567891011121314151617181920212223
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class Issue3707Checkmk < ActiveRecord::Migration[6.0]
  3. def change
  4. # return if it's a new setup
  5. return if !Setting.exists?(name: 'system_init_done')
  6. Setting.find_by(name: 'check_mk_auto_close').update(options: {
  7. form: [
  8. {
  9. display: '',
  10. null: true,
  11. name: 'check_mk_auto_close',
  12. tag: 'boolean',
  13. options: {
  14. true => 'yes',
  15. false => 'no',
  16. },
  17. },
  18. ],
  19. })
  20. end
  21. end