I made a mistake today by following this post : https://stackoverflow.com/a/34685657/10104165. As a result I lost a database with 104 tables. I managed to retrieve the table from Heroku when the app is running as well.
I followed these steps:
$ heroku pg:backups:capture
then :
$ heroku pg:backups:download
and finally:
$ pg_restore --verbose --clean --no-acl --no-owner -h localhost -d project4_development latest.dump
I got all the data back, but for some reason the data_source in my rubymine window says that project4_development does not exist. A part from a few issues, the app seems to be running a usual.
How can I find out where (which database) are the data currently displayed coming from ?