Ruby on Rails
Friday, February 1, 2019
I just halted on an upgrade project due to time constraints. Rails V3 Ruby 1.9.3
It has so many abandoned Gems I had to stop at Rails 3.2.25 and Ruby 2.1
Thankfully it had good test coverage. That was a huge help.
Remember when we started whitelisted attributes in the model and then it was moved to the controller? There's a lot of moving code around.
If you incrementally upgrade you can eventually use
rails app:update # Update configs and some other initially generated files (or use just update:configs or update:bin)
to help
I would also upgrade bundler to 1.13. You have better control over updating gems. https://bundler.io/man/bundle-update.1.html
https://medium.com/cedarcode/reduce-fear-of-bundle-update-with-this-4-step-process-e021e8808c48
My advice un upgrading is the same advice you get when you go white water raftering, and they talk about if you get stuck under the boat, "Pick a direction and go. Don't turn around."
also, git commit often. :-)
John
I have a Rails app, made 10 years back in 2009 with following version:rails version = 2.0.2ruby version = 1.8.7Database = PostgreSQLNow what steps I should adopt in order to upgrade it to latest version of ruby and rails i.e.,rails version = 5.2ruby version = 2.6Database = PostgreSQLAs per up-gradation rule here(https://edgeguides.rubyonrails.org/upgrading_ ), I need to start up-gradation one by one version gradually like,ruby_on_rails.html 2.x to 3.x3.x to 4.x4.x to 5.xMy question here is,Is there any other way to directly update it from 2.x to 5.x?Note: I can develop it by scratch but my client not agree on that, they just asking for update in existing app not build from scratch in latest version of Ruby on Rails.Kindly provide your thoughts.Thanks
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/74a54880-25c8-4af8-b170-007e905b0e0f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment