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
string but that would break my fixtures if I move to a different db.
everyone else doing?

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


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