Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Upgrading Rails 3.2 to Rails 5

I have a Rails 3.2 project that has 30 models and about 20 controllers. It's not a super huge codebase and its pretty much an idiomatic Rails site.

Is there any advantage to just doing rails new and controller by controller, model by model, gem by gem just copy and pasting things in and getting everything running on a fresh Rails 5 instance?

I just see some pain trying to do an upgrade version by version. Is this a viable way to upgrade a project where I have written all the code and know the project well?

like image 762
slindsey3000 Avatar asked Aug 24 '16 14:08

slindsey3000


1 Answers

There's no harm in doing that at all, it will help you move to the newer project structure and ensure all new files are in place (bin files for instance). You will still need to make sure you make all of the relevant code changes (ApplicationRecord inheritance for example) to your files.

like image 95
Matt Avatar answered Nov 19 '22 11:11

Matt