Rails Postgres String To Integer Cpp Dates For Dec