- Add foreign_keys - Remove unused classes/methods - Fix pronto errors - Add method to retrieve client id from name - Remove TODO comments - Fix unnecessary private key generation
12 lines
291 B
Ruby
12 lines
291 B
Ruby
class CreateIdTokens < ActiveRecord::Migration
|
|
def change
|
|
create_table :id_tokens do |t|
|
|
t.belongs_to :authorization, index: true
|
|
t.datetime :expires_at
|
|
t.string :nonce
|
|
|
|
t.timestamps null: false
|
|
end
|
|
add_foreign_key :id_tokens, :authorizations
|
|
end
|
|
end
|