# How to downgrade from rails 2.0.2

**URL:** <https://www.ruby-forum.com/t/how-to-downgrade-from-rails-2-0-2/131318>\
**Category:** Rails\
**Created:** [March 8, 2008, 1:25am UTC](https://www.ruby-forum.com/t/how-to-downgrade-from-rails-2-0-2/131318 "2008-03-08T01:25:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![macfizz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/b9bd4f/32.png) [@macfizz](https://www.ruby-forum.com/u/macfizz)\
**Post date:** [March 8, 2008, 1:25am UTC](https://www.ruby-forum.com/t/how-to-downgrade-from-rails-2-0-2/131318/1 "2008-03-08T01:25:04Z")

</div>

Somehow I have ended up with v2.0.2 on my Mac. I am running Leopard so  
am not sure whether this version came with it. Here are the various  
versions of components:

macfizz$ rails -v  
Rails 2.0.2  
macfizz$ ruby -v  
ruby 1.8.6 (2007-09-24 patchlevel 111) [universal-darwin9.0]  
macfizz$ gem -v  
1.0.1  
macfizz$

Anyway, for various reasons I’m not that happy with 2.0.2 and want to  
downgrade my entire installation to where it was working nicely. I  
don’t know either the version numbers I need (though I think I am  
looking for v 1.8.x of Rails and whatever goes with that)

Can anyone point me to suitable documentation for doing this?

Thanks,

## macfizz

---

<div class="post-metadata">

**Author:** ![macfizz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/b9bd4f/32.png) [@macfizz](https://www.ruby-forum.com/u/macfizz)\
**Post date:** [March 8, 2008, 2:50am UTC](https://www.ruby-forum.com/t/how-to-downgrade-from-rails-2-0-2/131318/2 "2008-03-08T02:50:05Z")

</div>

macfizz wrote:

> Anyway, for various reasons I’m not that happy with 2.0.2 and want to  
> downgrade my entire installation to where it was working nicely. I  
> don’t know either the version numbers I need (though I think I am  
> looking for v 1.8.x of Rails and whatever goes with that)

$ gem search -r rails  
…  
rails (2.0.2, 2.0.1, 2.0.0, 1.2.6, 1.2.5…

Then:

gem install rails v=1.2.6

Then edit config/environment.rb like this:

#RAILS\_GEM\_VERSION = ‘2.0.2’  
RAILS\_GEM\_VERSION = ‘1.2.6’

Run all your tests. (You do _have_ tests, right?)

If any test fails, pass it, switch back to 2.0.2, and integrate. (That  
means  
pass all tests, then copy your code to your version controller.) Keep  
switching  
back and forth until all tests pass in both versions, and manual tests  
pass.  
Then stay with 1.2.6.

–  
Phlip  
[http://assert2.rubyforge.org/](http://assert2.rubyforge.org/)
