Files
api/db/old/20260128000001_create_retired_tokens.rb
Jason Jordan 9853d58469
CI / scan_ruby (push) Failing after 2m13s
CI / lint (push) Failing after 20s
Its been a while
2026-07-23 10:41:46 -04:00

15 lines
360 B
Ruby

class CreateRetiredTokens < ActiveRecord::Migration[7.2]
def change
create_table :retired_tokens do |t|
t.string :jti, null: false
t.references :user, null: false, foreign_key: true
t.datetime :exp, null: false
t.timestamps
end
add_index :retired_tokens, :jti, unique: true
add_index :retired_tokens, :exp
end
end