Tie access token directly to session
We need to present them differently in the session list and prevent them from being deleted
This commit is contained in:
committed by
Stanko K.R.
parent
b53c0a5385
commit
db29562c4c
@@ -2,6 +2,7 @@ class CreateIdentityAccessTokens < ActiveRecord::Migration[8.2]
|
||||
def change
|
||||
create_table :identity_access_tokens, id: :uuid do |t|
|
||||
t.uuid :identity_id, null: false
|
||||
t.uuid :session_id, null: false
|
||||
t.string :token
|
||||
t.string :permission
|
||||
t.text :description
|
||||
|
||||
Generated
+1
@@ -326,6 +326,7 @@ ActiveRecord::Schema[8.2].define(version: 2025_12_05_010536) do
|
||||
t.text "description"
|
||||
t.uuid "identity_id", null: false
|
||||
t.string "permission"
|
||||
t.uuid "session_id", null: false
|
||||
t.string "token"
|
||||
t.datetime "updated_at", null: false
|
||||
t.index ["identity_id"], name: "index_access_token_on_identity_id"
|
||||
|
||||
@@ -326,6 +326,7 @@ ActiveRecord::Schema[8.2].define(version: 2025_12_05_010536) do
|
||||
t.text "description", limit: 65535
|
||||
t.uuid "identity_id", null: false
|
||||
t.string "permission", limit: 255
|
||||
t.uuid "session_id", null: false
|
||||
t.string "token", limit: 255
|
||||
t.datetime "updated_at", null: false
|
||||
t.index ["identity_id"], name: "index_access_token_on_identity_id"
|
||||
|
||||
Reference in New Issue
Block a user