annotate_models icon indicating copy to clipboard operation
annotate_models copied to clipboard

Is there a way to add a description for a column?

Open yasuf opened this issue 5 years ago • 2 comments

This is not so much a problem/bug but more of a feature request (understandable if this is not part of the scope of this gem) but wanted to ask:

Will there be support to add a description for a column? let's say

#  length      :integer          not null            video length in seconds

yasuf avatar Oct 30 '20 23:10 yasuf

I guess I need a way to add something to the column and to not be deleted by the automatic generation of the schema information, it could be something like:

#  length      :integer          not null            * video length in seconds

where everything after the symbol (*) is ignored

yasuf avatar Oct 30 '20 23:10 yasuf

I could use comments also.

Rails5 supports adding comments about fields in the DB itself, and annotate will show those. https://bigbinary.com/blog/rails-5-supports-adding-comments-migrations

Unfortunately, ad-hoc comments for existing fields are not supported that way.

Epigene avatar Feb 03 '21 15:02 Epigene