20210311130946_remove_unfixable_generic_oauth2_login.rb 307 B

12345678910
  1. # Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
  2. class RemoveUnfixableGenericOauth2Login < ActiveRecord::Migration[5.2]
  3. def change
  4. return if !Setting.exists?(name: 'system_init_done')
  5. Setting.where(name: %w[auth_oauth2 auth_oauth2_credentials]).destroy_all
  6. end
  7. end