Create 20250307225347_create_sign_in_tokens.rb

This commit is contained in:
Max Wofford
2025-03-07 18:11:42 -05:00
parent c013c3e0bf
commit 5a88fa668c

View File

@@ -0,0 +1,14 @@
class CreateSignInTokens < ActiveRecord::Migration[8.0]
def change
create_table :sign_in_tokens do |t|
t.string :token
t.references :user, null: false, foreign_key: true
t.integer :auth_type
t.datetime :expires_at
t.datetime :used_at
t.timestamps
end
add_index :sign_in_tokens, :token
end
end