Forum: Ruby on Rails timestamps in fixtures

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Ddd11872984864786c14992b99ab4d2d?d=identicon&s=25 Alan Bullock (Guest)
on 2006-04-12 10:59
(Received via mailing list)
what's the recommended way to insert database agnostic timestamps in
fixtures? at present, I'm using strftime to insert a mysql formatted
time
string but that would break my fixtures if I move to a different db.
what's
everyone else doing?
Ddd11872984864786c14992b99ab4d2d?d=identicon&s=25 Alan Bullock (Guest)
on 2006-04-12 11:17
(Received via mailing list)
never mind, I just found out about Time.now.to_s(:db) on the wiki:

http://wiki.rubyonrails.com/rails/pages/ActiveReco...
This topic is locked and can not be replied to.