# Issues with multiple versions of rails installed, pls advise

**URL:** <https://www.ruby-forum.com/t/issues-with-multiple-versions-of-rails-installed-pls-advise/142510>\
**Category:** Rails\
**Created:** [July 8, 2008, 6:21pm UTC](https://www.ruby-forum.com/t/issues-with-multiple-versions-of-rails-installed-pls-advise/142510 "2008-07-08T18:21:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bigdaddy71](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bbe5ce/32.png) [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Post date:** [July 8, 2008, 6:21pm UTC](https://www.ruby-forum.com/t/issues-with-multiple-versions-of-rails-installed-pls-advise/142510/1 "2008-07-08T18:21:51Z")

</div>

I’ve got multiple versions of rails currently installed, 1.2.6 and 2.1.  
I need 1.2.6 as I have an active app that is based on 1.2.6 and am not  
in a position to move it to 2.1. I know about the _version_ trick when  
generating a new project. My problem is when running ‘script/generate  
migration …’ within the 1.2.6 project. I get a message stating that I  
need to update my boot.rb and my migration file is never generated.  
removing the 2.1 gem fixes the problem, but I’d like to keep it for  
additional projects.

Anyone got any ideas on how to get around this?

Chris

---

<div class="post-metadata">

**Author:** ![bigdaddy71](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bbe5ce/32.png) [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Post date:** [July 8, 2008, 7:09pm UTC](https://www.ruby-forum.com/t/issues-with-multiple-versions-of-rails-installed-pls-advise/142510/2 "2008-07-08T19:09:57Z")

</div>

On 8 Jul 2008, at 17:21, Chris H. wrote:

> removing the 2.1 gem fixes the problem, but I’d like to keep it for  
> additional projects.
> 
> Anyone got any ideas on how to get around this?

Set the gem version in environment.rb or freeze rails into the project.

Fred
