1 class CreateDoorkeeperOpenidConnectTables < ActiveRecord::Migration[7.0]
3 create_table :oauth_openid_requests do |t|
4 t.references :access_grant, :null => false, :index => true
5 t.string :nonce, :null => false
8 # Avoid validating foreign keys doe to possible deadlock
9 # create a separate migration instead, as suggested by db:migrate
12 :oauth_openid_requests,
14 :column => :access_grant_id,
15 :on_delete => :cascade, :validate => false