News for hackers. Stuff that matters.
Re:Reversible Migrations in Rails 3.1 by moe on Saturday May 07, 2011 @05:53PM (#2524672)
Yes, that's what everybody refers to when they quickly need to look up a field.

However, having to look in two places to understand your model is a bit cumbersome, isn't it? Especially when complex associations come into play and you have to resolve the rails identifier magic in your head...

And then there's the question of why you should have to refer to a cached copy of your schema when you could just spell it all out in one place.

Re:Reversible Migrations in Rails 3.1 by jarin on Saturday May 07, 2011 @09:45PM (#2525046)
If remembering attribute names is your concern, you can use an IDE or vim plugin for autocomplete, or just use annotated_models to add/update the schema down at the bottom of your model files on every db:migrate: https://github.com/openteam/annotated_models
Re:Reversible Migrations in Rails 3.1 by moe on Sunday May 08, 2011 @10:38PM (#2527336)
You're proposing kludges for a problem that doesn't exist in declarative ORMs and that is far from the most serious issue of AR.

My general point is that AR makes no sense for web applications.