annotate_models
annotate_models copied to clipboard
Support Customized Type-Mapping for YARD Syntax
Currently, some column types (including built-in types) would are missing mappings for the YARD syntax option.
The most notable example is bigint, which the new default for primary and foreign keys in later versions of Rails (5.1 and onwards).
More edge case include types from extensions like hstore, ltree, citext (Postgres' case-insensitive TEXT type), the money type, geometry and geography types from PostGIS, and application specified types like aggregates, enums, and domain types.
Having a mechanism to provide type mappings (and also potentially overrides for built-in mappings) would be ideal.
Version
- 3.1.1
- 6.0.3.2
- 2.6.5p114