I am not a rail guy, but this is what I did now in my spring application, I wanted to link my local development with the db hero .. I got db info from this:
heroku pg:credentials DATABASE
then I went through params .. But I found that to connect the remote db hero I needed to add this to my connection settings.
ssl=true&sslfactory=org.postgresql.ssl.NonValidatingFactory
source
share