Use Doorkeeper.configuration.orm_name rather than DOORKEEPER_ORM.