Sha256: 5cfea0ba8838a0b17be3412fab37cd6d2446d2de0bc4bd0aa6c313ae4507cf8a
Contents?: true
Size: 348 Bytes
Versions: 52
Compression:
Stored size: 348 Bytes
Contents
class CreateAccessTokens < ActiveRecord::Migration[6.0] def change create_table :access_tokens, id: :uuid do |t| t.string :token t.datetime :expires_at t.timestamps end add_reference :access_tokens, :user, type: :uuid, index: true add_reference :access_tokens, :oauth_client, type: :uuid, index: true end end
Version data entries
52 entries across 52 versions & 1 rubygems