How to get shared database url in heroku

database, heroku, ruby-on-rails

Solution

You can use command: `heroku pg:info` or just `heroku pg` to get information about your database. You will get something like this:

HEROKU_POSTGRESQL_GRAY_URL (DATABASE_URL)

Then run: `heroku pg:reset HEROKU_POSTGRESQL_GRAY_URL`

to reset database on heroku.

Problem

How to get SHARED_DATABASE_URL in heroku.. while am trying to migrate it is asking for SHARED_DATABASE_URL how can i get it.. ?? ``` heroku pg:reset --db SHARED_DATABASE_URL ``` What should i add in the place of SHARED_DATABASE_URL?? am working in ruby on rails could anyone help me on this.

Original source

Related problems