Sha256: 3e0958486205eaa0101977c8212ec44b2c8ca7a6aa82c69f1c87f31ec3fd7053

Contents?: true

Size: 395 Bytes

Versions: 2

Compression:

Stored size: 395 Bytes

Contents

class CreateDoorkeeperOpenidConnectTables < ActiveRecord::Migration<%= migration_version %>
  def change
    create_table :oauth_openid_requests do |t|
      t.integer :access_grant_id, null: false
      t.string :nonce, null: false
    end

    add_foreign_key(
      :oauth_openid_requests,
      :oauth_access_grants,
      column: :access_grant_id,
      on_delete: :cascade
    )
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
doorkeeper-openid_connect-1.7.2 lib/generators/doorkeeper/openid_connect/templates/migration.rb.erb
doorkeeper-openid_connect-1.7.1 lib/generators/doorkeeper/openid_connect/templates/migration.rb.erb