You can't without executing the sql directly, because updated at is automagic
Sent from my iPhone On 02/02/2009, at 9:19 PM, Tushar Gandhi <[email protected] > wrote: > > Hi, > I have an 'updated_at' field in events table. Whenever I am creating > an event it gets set to Time.now. But I don't want to set current time > in it. But I want to set another time. How should I do that? I tried > like this:- > > event.updated_at="2008-02-02 03:35:11". > event.save > > Still it not working. > Can anyone tell me how to do that? > Thanks, > Tushar > -- > Posted via http://www.ruby-forum.com/. > > > --~--~---------~--~----~------------~-------~--~----~ 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

