title: ActiveRecord::JDBCError: org.postgresql.util.PSQLException: FATAL: no pg_hba.conf entry for host
body: <p>I am deploying a Rails project on heroku(using jruby).
  It is being deployed successfully but I am not able to run:</p>
  
  <p><code>heroku run rake db:migrate</code></p>
  
  <p>(I am one of the collaborators of the app and not the owner)</p>
  
  <p>It is throwing an exception:</p>
  
  <p><code>ActiveRecord::JDBCError: org.postgresql.util.PSQLException: FATAL: no pg_hba.conf entry for host "54.163.178.100", user "XXXX", database "YYYY", SSL off</code></p>
  
  <p>After searching over I got one way i.e adding <code>?ssl=true&amp;sslfactory=org.postgresql.ssl.NonValidatingFactory</code> in DB url, but I am not sure where to add it.</p>
  
  <p>Apart from all this when I try to deploy the same Rails project on my personal account's app it is working fine.<code>heroku run rake db:migrate</code> is getting succeeded.</p>
  
  <p>Can someone please help me with the solution?</p>