I use the annotate gem in all my RoR projects. It adds comments to the model files based on the structure of the DB table. I find it very helpful. Haven&#x27;t really thought about taking it a step further and _enforcing_ it with code.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;ctran&#x2F;annotate_models" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;ctran&#x2F;annotate_models</a>