I would like to present a feature request to the
rails rails:update command. This feature request is about user experience and making developers lives better. It goes alongs the same lines as your recent migration from
rails, which has been an absolute joy to use, much, much more than something that runs a fraction of second faster.
I think it would be really nice if the
rails update command provided more user feedback for files that it does not update. Some examples:
- if it printed out in STDOUT that I should change the
application.htmlfile because it wasn’t able to find the
application.html.erbfile. (I used HAML, SASS, and Rspec in my rails app.)
- code in
cable.coffeehas changed and needs to be replaced with
- mention there has been additions like
config/initializers/to_time_preserves_timezone.rbfiles, but it’s not needed for my application because… (post a link to refer to) and that’s why it did not create them.
Basically with better feedback, we can save all the developers time and anxiety when upgrading. With a little feedback like this, dev’s know there are additional changes that needs to be done that the script wasn’t able to, or new things/configuration changes with reference links to research so they can determine what they wish to do about it. When upgrading becomes easier and pleasant, then more dev’s will be willing to upgrade quicker which results in less support for older versions.
PS - I got this insight from my recent experience updating rails (see issue #24983).