With numeric types things are more complicated, since Postgres has the Money type, for instance, and it looks like it won't be detected as numeric. Then again, the old code might have been wrong too, since it detected Money as numeric, but not as decimal.
...
With the current version of Rails it seems that the only missing type is :money from PostgreSQL which should be mapped to Decimal.
We need to add validation support for the :money column type in PostgreSQL as if it was a decimal column.
Opened as a result of the discussion in this PR: https://github.com/SchemaPlus/schema_validations/pull/44#issuecomment-260828017
We need to add validation support for the :money column type in PostgreSQL as if it was a decimal column.