Class: CreateAuthorizationCodes
- Inherits:
-
Object
- Object
- CreateAuthorizationCodes
- Defined in:
- lib/osso/db/migrate/20200413142511_create_authorization_codes.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/osso/db/migrate/20200413142511_create_authorization_codes.rb', line 2 def change create_table :authorization_codes, id: :uuid do |t| t.string :token t.string :redirect_uri t.datetime :expires_at t. end add_index :authorization_codes, :token, unique: true add_reference :authorization_codes, :user, type: :uuid, index: true add_reference :authorization_codes, :oauth_client, type: :uuid, index: true end |