Use Synvert to automatically upgrade rails 4.2 to 5.0 (Part 1)
synvert.substack.com