annotate_models icon indicating copy to clipboard operation
annotate_models copied to clipboard

Support Customized Type-Mapping for YARD Syntax

Open mintyfresh opened this issue 5 years ago • 0 comments

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

mintyfresh avatar Jul 20 '20 18:07 mintyfresh