follows: https://devcenter.heroku.com/articles/rails4