Hi,
I am trying to import data from an old database which stored timestamps
as int fields. I am looking for a way of turning them into a datetime
field created_at.
Let''s say for example that I have
OldArticle.time # BigNum 1111111111
And I would like:
NewArticle.created_at = ?????????(Old.Article.time)
How can I do that?
By the way, should I use timestamps or datetimes for created_at and
updated_at fields? I found both...
Thank you a lot!
Nauhaie
--
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
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
-~----------~----~----~----~------~----~------~--~---