ActiveRecord: milliseconds aren't taken into account when using a where clause
I'm working on a project with a rails api and an iOS client, using the updated_at field as the reference to detect modifications on the server that happened after the last pull from the client. The updated_at datetime has a precision in milliseconds, meaning that Model.updated_at.to_f returns something like "1368977381.063427". This is sent to the client formatted as "2013-05-19T15:29:41.063427000Z". The trouble is, when I get that datetime back from the client, parse it and query with it, the milliseconds are lost. last_update = DateTime.strptime("2013-05-19T15:29:41.063427000Z", "%Y-%m-%dT%H