You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: 20230830115219_create_doorkeeper_openid_connect_tables.rb
    path of file: ./repos/openstreetmap-website/db/migrate
    
    the code of the file until where you have to start completion: class CreateDoorkeeperOpenidConnectTables < ActiveRecord::Migration[7.0]
  def change
    create_table :oauth_openid_requests do |t|
      t.references :access_grant, :nul
    
  def change
    create_table :oauth_openid_requests do |t|
      t.references :access_grant, :null => false, :index => true
      t.string :nonce, :null => false
    end

    # Avoid validating foreign keys doe to possible deadlock
    # create a separate migration instead, as suggested by db:migrate

    add_foreign_key(
      :oauth_openid_requests,
      :oauth_access_grants,
      :column => :access_grant_id,
      :on_delete => :cascade, :validate => false
    )
  end
end