Rails 4.1.0 RC1 Support

Change effective on 19 February 2014

Ruby apps on Heroku now support the Rails 4.1.0 RC1 release. In order to support the new features we’ve made the following changes for a Rails 4.1.0 RC1 app:

  1. config/database.yml won’t be overwritten anymore when a Rails 4.1.0 RC1 app is detected. Instead, it will be merged with DATABASE_URL so additional options like pool size can be set in config/database.yml.
  2. A SECRET_KEY_BASE config var will be generated for the lifetime of any Rails 4.1 app. New Rails 4.1.0 RC1 apps will set this up for you, but ensure your config/secrets.yml has the following:
  secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>

You can set a new value for SECRET_KEY_BASE to roll your credentials:

$ heroku config:set SECRET_KEY_BASE=`ruby -rsecurerandom -e "puts SecureRandom.hex(64)"`