class CreateAccessTokens
Public Instance Methods
change()
click to toggle source
# File lib/osso/db/migrate/20200413163451_create_access_tokens.rb, line 2 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