0
Я получаю странную ошибку при использовании Doorkeeper в моем приложении rails. Вот как выглядит мой файл doorkeeper.rb как:Заявление недействительно в ошибке 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
Когда я иду на маршрут localhost:3000/oauth/authorize
с моим вошедшим пользователем он выдает эту ошибку:
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
Может кто-нибудь сказать мне, почему эта ошибка может Может быть, спасибо за помощь?