20220405133444_issue4049_fix_object_lookup.rb 338 B

12345678910
  1. # Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
  2. class Issue4049FixObjectLookup < 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. ObjectLookup.find_by(name: 'SmimeCertificate')&.update(name: 'SMIMECertificate')
  7. end
  8. end