20200510110808_reset_web_app_secret.rb 254 B

123456789101112131415
  1. class ResetWebAppSecret < ActiveRecord::Migration[5.2]
  2. disable_ddl_transaction!
  3. def up
  4. web_app = Doorkeeper::Application.find_by(superapp: true)
  5. return if web_app.nil?
  6. web_app.renew_secret
  7. web_app.save!
  8. end
  9. def down
  10. end
  11. end