mirror of
https://github.com/SrIzan10/hc-harbor.git
synced 2026-05-01 10:45:21 +00:00
15 lines
346 B
Ruby
15 lines
346 B
Ruby
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
|