20220822075554_issue4219_ldap_wizard.rb 324 B

123456789101112
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class Issue4219LdapWizard < ActiveRecord::Migration[6.1]
  3. def change
  4. return if !Setting.exists?(name: 'system_init_done')
  5. LdapSource.find_each do |source|
  6. source.preferences.delete(:wizardData)
  7. source.save!
  8. end
  9. end
  10. end