[openstreetmap/openstreetmap-website] Add annotate gem and associated rake task. Annotate models. Accept new line changes in test/fixtures. (#1280)

Matt Amos notifications at github.com
Fri Sep 9 10:08:39 UTC 2016


It appears to add comments into each model which explain the current schema. It seems like this would make it easier to look up that information than having to `psql` in the database, e.g: to remember what the column name is. I think this could be helpful, as this information is often hidden by Rails' "magic" and making it explicit means less frustration when the "magic" doesn't match expectations.

The `rake` task presumably maintains this information so that future migrations don't mean the comments have to be updated by hand.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/1280#issuecomment-245873867
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20160909/dd1ca44a/attachment.html>


More information about the rails-dev mailing list