Files
docuseal/db/migrate/20230806140534_create_access_tokens.rb
T

14 lines
341 B
Ruby
Raw Normal View History

2023-08-06 17:33:08 +03:00
# frozen_string_literal: true
class CreateAccessTokens < ActiveRecord::Migration[7.0]
def change
create_table :access_tokens do |t|
t.references :user, null: false, foreign_key: true, index: true
t.text :token, null: false
2023-10-11 21:05:29 +03:00
t.string :sha256, null: false, index: { unique: true }
2023-08-06 17:33:08 +03:00
t.timestamps
end
end
end