- 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
358 B
Ruby
12 lines
358 B
Ruby
class CreateOAuthAccessTokens < ActiveRecord::Migration
|
|
def change
|
|
create_table :o_auth_access_tokens do |t|
|
|
t.belongs_to :authorization, index: true
|
|
t.string :token, index: {unique: true, length: 191}
|
|
t.datetime :expires_at
|
|
|
|
t.timestamps null: false
|
|
end
|
|
add_foreign_key :o_auth_access_tokens, :authorizations
|
|
end
|
|
end
|