# Rake aborted! undefined method \`time\_zone=' for #

**URL:** <https://www.ruby-forum.com/t/rake-aborted-undefined-method-time-zone-for/141745>\
**Category:** Rails\
**Created:** [June 30, 2008, 10:21am UTC](https://www.ruby-forum.com/t/rake-aborted-undefined-method-time-zone-for/141745 "2008-06-30T10:21:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shuaib85](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/bbce88/32.png) [@shuaib85](https://www.ruby-forum.com/u/shuaib85)\
**Post date:** [June 30, 2008, 10:21am UTC](https://www.ruby-forum.com/t/rake-aborted-undefined-method-time-zone-for/141745/1 "2008-06-30T10:21:24Z")

</div>

Dear

I have uploaded one project on my account on one of the servers. When  
I do migrate  
the database rake db:migrate  
i get this error

rake aborted! undefined method `time\_zone=’ for #

any idea on how to solve this problem

Thanks

---

<div class="post-metadata">

**Author:** ![shuaib85](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/bbce88/32.png) [@shuaib85](https://www.ruby-forum.com/u/shuaib85)\
**Post date:** [June 30, 2008, 11:47am UTC](https://www.ruby-forum.com/t/rake-aborted-undefined-method-time-zone-for/141745/2 "2008-06-30T11:47:34Z")

</div>

On 30 Jun 2008, at 09:20, Shuaib85 wrote:

> any idea on how to solve this problem  
> That usually means you generated your apps using rails 2.1 (or edge  
> rails) but the app itself is running 2.0.2.  
> This happened to a lot of people that had used aptana at least once  
> because it added stuff to your gem sources list.  
> Removing the offending line from your environment.rb should do the  
> trick, and you should probably check the versions of the rails gems  
> you have installed.  
> Fred
