{"id":1010,"date":"2012-11-10T13:16:05","date_gmt":"2012-11-10T21:16:05","guid":{"rendered":"http:\/\/www.wiredatom.com\/blog\/?p=1010"},"modified":"2013-01-13T16:05:04","modified_gmt":"2013-01-14T00:05:04","slug":"upgrading-rails-2-x-to-rails-3","status":"publish","type":"post","link":"https:\/\/www.wiredatom.com\/blog\/2012\/11\/10\/upgrading-rails-2-x-to-rails-3\/","title":{"rendered":"Upgrading Rails 2.x to Rails 3"},"content":{"rendered":"<p>I gathered a small collection of sites on how to upgrade from Rails 2.x to Rails 3 for my last job. But we never got around to using it. But instead of throwing away the bookmarks, I thought it might be a good idea to save them somewhere more &#8220;permanent&#8221;.<\/p>\n<ul>\n<li><a href=\"http:\/\/nerds.airbnb.com\/upgrading-airbnb-from-rails-23-to-rails-30\">Upgrading Airbnb from Rails 2.3 to Rails 3.0<\/a><\/li>\n<li><a href=\"http:\/\/www.simonecarletti.com\/blog\/2010\/07\/the-way-to-rails-3\/\">The Road to Rails 3: make your Rails 2.3 project more Rails 3 oriented<\/a><\/li>\n<li><a href=\"http:\/\/davidjrice.co.uk\/2011\/05\/25\/how-to-upgrade-a-rails-application-to-version-3-1-0.html\">How to Upgrade to Rails 3.1.0<\/a><\/li>\n<\/ul>\n<p>One method I keep hearing from others who have done it is to make sure you have decent test coverage for your app. And then upgrade one baby steps at a time: First upgrade to the next immediate major version of Rails, and then the one after that&#8230; etc. For example, Rails 2.3.x => 3.0, and then 3.0 => 3.1, and then 3.1 => 3.2&#8230; etc. And along the way, fix your code and make sure all the tests pass.<\/p>\n<p>Happy coding.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I gathered a small collection of sites on how to upgrade from Rails 2.x to Rails 3 for my last job. But we never got around to using it. But instead of throwing away the bookmarks, I thought it might be a good idea to save them somewhere more &#8220;permanent&#8221;. Upgrading Airbnb from Rails 2.3 &hellip; <a href=\"https:\/\/www.wiredatom.com\/blog\/2012\/11\/10\/upgrading-rails-2-x-to-rails-3\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Upgrading Rails 2.x to Rails 3&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[21,10],"tags":[],"class_list":["post-1010","post","type-post","status-publish","format-standard","hentry","category-coding","category-geek-stuff"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p54IqZ-gi","_links":{"self":[{"href":"https:\/\/www.wiredatom.com\/blog\/wp-json\/wp\/v2\/posts\/1010","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wiredatom.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wiredatom.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wiredatom.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wiredatom.com\/blog\/wp-json\/wp\/v2\/comments?post=1010"}],"version-history":[{"count":0,"href":"https:\/\/www.wiredatom.com\/blog\/wp-json\/wp\/v2\/posts\/1010\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wiredatom.com\/blog\/wp-json\/wp\/v2\/media?parent=1010"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wiredatom.com\/blog\/wp-json\/wp\/v2\/categories?post=1010"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wiredatom.com\/blog\/wp-json\/wp\/v2\/tags?post=1010"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}