How do I check the records of my heroku database?

Justin Meltzer picture Justin Meltzer · Apr 28, 2011 · Viewed 28.6k times · Source

I've just deployed my application to heroku and pointed my custom domain to the heroku servers. How can I check the records in my heroku database?

Answer

Andre Schweighofer picture Andre Schweighofer · Apr 28, 2011

You can use heroku run rails console and look at your records with Model.all or any other method.

If you want to backup the database look at heroku PG backups, you then can import your database on your local machine and look at it there. Depending on your db adapter you could use sqlite browser for sqlite3 or phpmyadmin for MySQL.