You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
254 B

  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