20200709091905_maintenance_checkmk_wordings_on_settings.rb 623 B

1234567891011121314151617181920
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class MaintenanceCheckmkWordingsOnSettings < ActiveRecord::Migration[5.2]
  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_integration').update!(
  7. title: 'Checkmk integration',
  8. description: 'Defines if Checkmk (https://checkmk.com/) is enabled or not.',
  9. )
  10. Setting.find_by(name: 'check_mk_token').update!(
  11. title: 'Checkmk token',
  12. description: 'Defines the Checkmk token for allowing updates.',
  13. )
  14. end
  15. end