mirror of
https://github.com/SrIzan10/hc-harbor.git
synced 2026-05-01 10:45:21 +00:00
Create 20250307225347_create_sign_in_tokens.rb
This commit is contained in:
14
db/migrate/20250307225347_create_sign_in_tokens.rb
Normal file
14
db/migrate/20250307225347_create_sign_in_tokens.rb
Normal 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
|
||||
Reference in New Issue
Block a user