13 lines
367 B
Ruby
13 lines
367 B
Ruby
# frozen_string_literal: true
|
|
|
|
class CreateAuthenticationTokens < ActiveRecord::Migration[6.1]
|
|
def change
|
|
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.datetime :expire_at, null: false
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|