Wize Upgrader Gem
This gem is for upgrading basic Rails 3.2 apps to Rails 4.
We have to upgrade a bunch of apps from Rails 3.2 to Rails 4. We built this gem to help. NB: most of our apps are simple, but this should handle 95% of the cases out there.
$ gem install wize_upgrader
Run it from outside of your rails app.
$ wize_upgrader <rails_app_dir>
What it does
- makes a copy of old app to _old
- generates a new rails app with
rails new <rails_app_dir> -T
- copies over
- script => bin
- config/initializers (except wrap_parameters.rb)
- removes references to attr_accessible in models
- uses attr_accessible list to create *_params method in related controllers
Assumptions / TODO
- attr_accessible method calls are all one liners
- does not maintain gem groups in Gemfile