With pg installed, you can run the pg:psql
Heroku command to connect to your database and execute commands using the psql interactive terminal:
$ heroku pg:psql
psql (9.3.5, server 9.3.3)
SSL connection (cipher: DHE-RSA-AES256-SHA, bits: 256)
Type "help" for help.
database-name=> |