You should add a database connection to the authorization server, and in a MyApp::Application.config.to_prepare
block instruct the relevant doorkeeper
models to connect via those credentials.
See https://github.com/applicake/doorkeeper/issues/266#issuecomment-26800252.