fixed error with scale and precision for postgres migration