On Jul 19, 11:44 am, Vladimir Rybas <[email protected]> wrote: > I'm using Pfeed(http://github.com/parolkar/pfeed) plugin for User > Activity Feeds. > It creates PfeedItem model records and uses created_at field for a lot > of stuff inside. > > Now I need to export/import those user logs. I do exporting to YAML. > When I reconstruct PfeedItem AR object from YAML, it have real(old) > creation time in created_at attribute. When I save this PfeedItem - > there is new created_at with current time written to database. > > How do I force created_at to be not automatically generated, but > contain my old created_at timestamp from YAML?
Active Record shouldn't overwrite created_at if you set it yourself Fred -- 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.

