minor styling change to authenticationtoken model, changed the expire_at column of AuthenticationToken form date to datetime
This commit is contained in:

committed by
Sebastian Serth

parent
1a987a65d4
commit
6e213f754f
@ -5,7 +5,7 @@ class CreateAuthenticationTokens < ActiveRecord::Migration[6.1]
|
||||
create_table :authentication_tokens, id: :uuid do |t|
|
||||
t.string :shared_secret, null: false, index: {unique: true}
|
||||
t.references :user, polymorphic: true, null: false
|
||||
t.date :expire_at, null: false
|
||||
t.datetime :expire_at, null: false
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
|
@ -34,7 +34,7 @@ ActiveRecord::Schema.define(version: 2022_07_21_131946) do
|
||||
t.string "shared_secret", null: false
|
||||
t.string "user_type", null: false
|
||||
t.bigint "user_id", null: false
|
||||
t.date "expire_at", null: false
|
||||
t.datetime "expire_at", null: false
|
||||
t.datetime "created_at", precision: 6, null: false
|
||||
t.datetime "updated_at", precision: 6, null: false
|
||||
t.index ["shared_secret"], name: "index_authentication_tokens_on_shared_secret", unique: true
|
||||
|
Reference in New Issue
Block a user