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

Andy Allan notifications at github.com
Fri Sep 9 12:56:25 UTC 2016


> I fear that also makes it less useful to newcomers that aren't used to the schema.

I'd prefer to see it at the top, but I'm not sure if that's just my familiarity. I use annotate on many other projects, all top-annotated, and when I'm not interested in the details, I find it easy to ignore (like ignoring big license blurbs at the top of files :-) ). Here's a large project that I use it with, for example: https://github.com/cyclestreets/cyclescape/tree/staging/app/models

But top or bottom is just a detail. Having it is, as @zere says, much easier than fishing around via psql to see what attributes are available on each model, especially given our confusing model vs table naming differences, and attributes that appear neither in the models nor the model tests.

-- 
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-245904853
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20160909/9fbe9304/attachment.html>


More information about the rails-dev mailing list