Upgrade configuration files to Rails 4