Timestamps in fixtures

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?

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

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs