Skip to content

Using PostgreSQL UUID as primary key wth Doorkeeper OpenID Connect

Chris Ickes edited this page Nov 15, 2016 · 1 revision

A complete installation guide on UUIDs as primary keys with Doorkeeper can be found at the Doorkeeper wiki.

To enable UUID for OpenID Connect, simply adjust the generated migration:

---    create_table :oauth_openid_requests do |t|
---      t.integer :access_grant_id, null: false

+++    create_table :oauth_openid_requests, id: :uuid do |t|
+++      t.uuid :access_grant_id, null: false
      t.string :nonce, null: false
    end