- 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
17 lines
473 B
Ruby
17 lines
473 B
Ruby
class CreateAuthorizations < ActiveRecord::Migration
|
|
def change
|
|
create_table :authorizations do |t|
|
|
t.belongs_to :user, index: true
|
|
t.belongs_to :o_auth_application, index: true
|
|
t.string :refresh_token
|
|
t.string :code
|
|
t.string :redirect_uri
|
|
t.string :nonce
|
|
t.string :scopes
|
|
|
|
t.timestamps null: false
|
|
end
|
|
add_foreign_key :authorizations, :users
|
|
add_foreign_key :authorizations, :o_auth_applications
|
|
end
|
|
end
|