Fixed bug on pg and rails_12factor gems for heroku