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't really thought about taking it a step further and _enforcing_ it with code.<p><a href="https://github.com/ctran/annotate_models" rel="nofollow">https://github.com/ctran/annotate_models</a>