The transaction_time is a column in PostgreSQL. In that example, I get back the value casted by do_postgres as a DateTime, and missing milliseconds. If I cast in PostgreSQL as a text value, and then simply call to_datetime in Ruby, the milliseconds are still present.
Any idea why this is happening and how to fix it? Thanks!
https://gist.github.com/tpitale/39e97ef1ca24e968dd35
The
transaction_time
is a column in PostgreSQL. In that example, I get back the value casted by do_postgres as aDateTime
, and missing milliseconds. If I cast in PostgreSQL as a text value, and then simply call to_datetime in Ruby, the milliseconds are still present.Any idea why this is happening and how to fix it? Thanks!