There is no implicit cast from varchar to integer.

PG::Error: ERROR:  column "number" cannot be cast to type integer.