Rails Postgres String To Integer Cpp Payment