Add extra documentation to your tables columns with built-in comments
Hey folks, I just wrote a quick TIL on how to add extra documentation to your models attributes.
I’ve found Yard doc to be neat for public methods, but sometimes, models attributes are not super well documented. I recently had the case where we had several duration
attributes spread across several models, and each duration had its own unit. But nowhere was it documented.
Post a comment