trabajo-afectivo/db/migrate/20210311130946_remove_unfixable_generic_oauth2_login.rb

11 lines
306 B
Ruby

# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
class RemoveUnfixableGenericOauth2Login < ActiveRecord::Migration[5.2]
def change
return if !Setting.exists?(name: 'system_init_done')
Setting.where(name: %w[auth_oauth2 auth_oauth2_credentials]).destroy_all
end
end