Aptible PaaS logoDocs

Accessing Second Database from App

I already am using DATABASE_URL and need to access a second Database, what do I do?

You can create multiple environment variables to store multiple database URLs. (Just use different variable names.) These can then be used in a database.yml. The Aptible platform is agnostic as to how you store your DB configuration, just so long as you read in the env variables correctly.