Class: CreateAccessTokens
- Inherits:
-
Object
- Object
- CreateAccessTokens
- Defined in:
- lib/osso/db/migrate/20200413163451_create_access_tokens.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 |
# 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. end add_reference :access_tokens, :user, type: :uuid, index: true add_reference :access_tokens, :oauth_client, type: :uuid, index: true end |