0
私のレールアプリでDoorkeeperを使用しているときに異常なエラーが発生しています。ここに私のdoorkeeper.rbファイルは次のようになります。私のユーザーでログインして、私はルートlocalhost:3000/oauth/authorize
に行くとき文DoorKeeperエラーで無効です
Doorkeeper.configure do
# Change the ORM that doorkeeper will use (needs plugins)
orm :active_record
# This block will be called to check whether the resource owner is authenticated or not.
resource_owner_authenticator do |routes|
# Put your resource owner authentication logic here.
# Example implementation:
User.find_by_id(session[:user_id]) || redirect_to(routes.login_url)
end
end
それは、このエラーがスローされます。
ActiveRecord::StatementInvalid in Doorkeeper::AuthorizationsController#new
Could not find table oauth_application
def table_structure(table_name)
structure = exec_query("PRAGMA table_info(#{quote_table_name(table_name)})", 'SCHEMA')
raise(ActiveRecord::StatementInvalid, "Could not find table '#{table_name}'") if structure.empty?
table_structure_with_collation(table_name, structure)
end
なぜこのエラーがかもしれない誰も私を言うことができます起こっている?助けを進んでいただきありがとうございます。