20200709091905_maintenance_checkmk_wordings_on_settings.rb 546 B

123456789101112131415161718
  1. class MaintenanceCheckmkWordingsOnSettings < ActiveRecord::Migration[5.2]
  2. def change
  3. # return if it's a new setup
  4. return if !Setting.exists?(name: 'system_init_done')
  5. Setting.find_by(name: 'check_mk_integration').update!(
  6. title: 'Checkmk integration',
  7. description: 'Defines if Checkmk (https://checkmk.com/) is enabled or not.',
  8. )
  9. Setting.find_by(name: 'check_mk_token').update!(
  10. title: 'Checkmk token',
  11. description: 'Defines the Checkmk token for allowing updates.',
  12. )
  13. end
  14. end