# How do you move an application to a newer version of Rails?

**URL:** <https://www.ruby-forum.com/t/how-do-you-move-an-application-to-a-newer-version-of-rails/96799>\
**Category:** Rails\
**Created:** [July 2, 2006, 4:33am UTC](https://www.ruby-forum.com/t/how-do-you-move-an-application-to-a-newer-version-of-rails/96799 "2006-07-02T04:33:44Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/3bc359/32.png) [@jon](https://www.ruby-forum.com/u/jon)\
**Post date:** [July 2, 2006, 4:33am UTC](https://www.ruby-forum.com/t/how-do-you-move-an-application-to-a-newer-version-of-rails/96799/1 "2006-07-02T04:33:44Z")

</div>

Hello,

I’ve got an app written in rails 1.1.2 and I need to move it to 1.1.4

Installing the older version of rails is not an option (it’s not my  
system) unfortunately.

Thanks,

-Jon

---

<div class="post-metadata">

**Author:** ![jon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/3bc359/32.png) [@jon](https://www.ruby-forum.com/u/jon)\
**Post date:** [July 2, 2006, 5:35am UTC](https://www.ruby-forum.com/t/how-do-you-move-an-application-to-a-newer-version-of-rails/96799/2 "2006-07-02T05:35:28Z")

</div>

1.1.2 to 1.1.4 is a fully backwards compatible release. Just run it on  
1.1.4, and if you hit any issues come back and ask about them.

---

<div class="post-metadata">

**Author:** ![jon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/3bc359/32.png) [@jon](https://www.ruby-forum.com/u/jon)\
**Post date:** [July 2, 2006, 6:15am UTC](https://www.ruby-forum.com/t/how-do-you-move-an-application-to-a-newer-version-of-rails/96799/3 "2006-07-02T06:15:49Z")

</div>

Chris C. wrote:

> 1.1.2 to 1.1.4 is a fully backwards compatible release. Just run it on  
> 1.1.4, and if you hit any issues come back and ask about them.

Ok Good to hear. Initially, rails had complained, and had told me to  
install the older version of rails. In the mean time, I ‘discovered’ a  
setting config/environment.rb:

RAILS\_GEM\_VERSION = ‘1.1.2’

I changed that to 1.1.4 and everything _seems_ to be working ok.

Thoughts:  
I hope rails doesn’t go down the Java route and be inflated/cumbered by  
backwards compatibility. Sometimes you gotta shed the old… Instead, a  
version migration tool might be handy 🙂

---

<div class="post-metadata">

**Author:** ![jon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/3bc359/32.png) [@jon](https://www.ruby-forum.com/u/jon)\
**Post date:** [July 2, 2006, 6:17am UTC](https://www.ruby-forum.com/t/how-do-you-move-an-application-to-a-newer-version-of-rails/96799/4 "2006-07-02T06:17:56Z")

</div>

On 7/1/06, Chris C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> 1.1.2 to 1.1.4 is a fully backwards compatible release. Just run it on  
> 1.1.4, and if you hit any issues come back and ask about them.

Except after I upgraded to 1.1.4, when I tried to do a

script/generate migration xxxx

on an app I created under 1.1.2 I got an error:

Cannot find gem for Rails =1.1.2:  
Install the missing gem with ‘gem install -v=1.1.2 rails’, or  
change environment.rb to define RAILS\_GEM\_VERSION with your desired  
version.

---

<div class="post-metadata">

**Author:** ![jon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/3bc359/32.png) [@jon](https://www.ruby-forum.com/u/jon)\
**Post date:** [July 2, 2006, 8:01am UTC](https://www.ruby-forum.com/t/how-do-you-move-an-application-to-a-newer-version-of-rails/96799/5 "2006-07-02T08:01:49Z")

</div>

John T. wrote:

> Cannot find gem for Rails =1.1.2:  
> Install the missing gem with ‘gem install -v=1.1.2 rails’, or  
> change environment.rb to define RAILS\_GEM\_VERSION with your desired  
> version.

John,

that’s the same error I got. Try editing your config/environment.rb file  
and change the line that says:

RAILS\_GEM\_VERSION = ‘1.1.2’

to

RAILS\_GEM\_VERSION = ‘1.1.4’

and report back if it doesn’t work. You might be nice and report back if  
it does work too for other poeple’s enlightenment.

---

<div class="post-metadata">

**Author:** ![jon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/3bc359/32.png) [@jon](https://www.ruby-forum.com/u/jon)\
**Post date:** [July 2, 2006, 1:11pm UTC](https://www.ruby-forum.com/t/how-do-you-move-an-application-to-a-newer-version-of-rails/96799/6 "2006-07-02T13:11:54Z")

</div>

On 7/2/06, Jon [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> and change the line that says:
> 
> RAILS\_GEM\_VERSION = ‘1.1.2’
> 
> to
> 
> RAILS\_GEM\_VERSION = ‘1.1.4’
> 
> and report back if it doesn’t work. You might be nice and report back if  
> it does work too for other poeple’s enlightenment.

Yes, that is what I did find I had to do.

My question is … are we going to have to do this every time Rails is  
updated - edit that file for every app we have?

---

<div class="post-metadata">

**Author:** ![jon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/3bc359/32.png) [@jon](https://www.ruby-forum.com/u/jon)\
**Post date:** [July 5, 2006, 9:22pm UTC](https://www.ruby-forum.com/t/how-do-you-move-an-application-to-a-newer-version-of-rails/96799/7 "2006-07-05T21:22:34Z")

</div>

I believe that running “rails /path/to/app” will upgrade the  
application once you installed the new release of rails.

Frederic J.
