20200510110808_reset_web_app_secret.rb 284 B

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