title: How can I attach a database to an app in Heroku?
body: <p>I'm using Heroku's Postgres addon, and I created a new production database from the Heroku Postgres addon page.
  I Didn't add it directly to my App using the Resources page of my App.</p>
  
  <p>Now I want to attach this database to my App so it'll be recognized by the <strong>heroku pg</strong> command.</p>
  
  <p>I'm able to use the database btw after setting the <strong>DATABASE_URL</strong> config var of my app to point to it, but <strong>heroku pg</strong> command doesn't recognize it yet.</p>
  
  <p>Additional info: The previous database was Shared, and the new one is a Production.</p>