Timestamps in fixtures


#1

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?


#2

never mind, I just found out about Time.now.to_s(:db) on the wiki:

http://wiki.rubyonrails.com/rails/pages/ActiveRecordYamlFixtures