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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Frederick Cheung
2008-Jun-30 09:46 UTC
Re: rake aborted! undefined method `time_zone='' for #
On 30 Jun 2008, at 09:20, Shuaib85 wrote:> > 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 problemThat 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> > > Thanks > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Reasonably Related Threads
- will_paginate generates undefined method paginate
- rake aborted! undefined method `each' for #<Mysql:
- why doesn't "config.time_zone = 'location'" ensure Time.now gives the time back in this time zone???
- rake aborted! undefined method `autoload!'
- undefined method `time_zone=' on Rails 2.0.2.9129 on Mac OS X