Database schemas change rapidly as project progresses. And it can be difficult to track purpose of each table and each column in a large project with multiple team members. The solution for this problem is to document data models right from Rails migrations. Solution in Rails 4 You can add comments in Rails 4.x migrations using gems like migration_comments and pg_comment. Solution in Rails 5 Rails
![Rails 5 supports adding comments in migrations](https://cdn-ak-scissors.b.st-hatena.com/image/square/df7dcf3e382d2d4b018ba79fc6642260e3fa7070/height=288;version=1;width=512/https%3A%2F%2Fres.cloudinary.com%2Fdpc4i4bdx%2Fimage%2Fupload%2Fbigbinary_blogs%2Fdefault_blog_image.png)