~cytrogen/masto-fe

ref: 2b98e2ecd6224ad41d38f5febd31efa7e4de316d masto-fe/db/migrate/20200510110808_reset_web_app_secret.rb -rw-r--r-- 284 bytes
2b98e2ec — Claire Fix auto-loading-more when not scrolled (#27286) 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

class ResetWebAppSecret < ActiveRecord::Migration[5.2]
  disable_ddl_transaction!

  def up
    web_app = Doorkeeper::Application.find_by(superapp: true)

    return if web_app.nil?

    web_app.renew_secret
    web_app.save!
  end

  def down; end
end