I have developed 3 small applications using rails (nothing production
worthy, just some small stuff “prototype” style). And I often end up
changing my database scheme in the middle of development. I also use
“script/generate scaffold” (this is somehow relevant to my question).
Whenever I change my database schema I end up having to regenerate the
scaffold. In the past this was okay, because I would not choose to
overwrite files that I have worked on; but this raises a question…
why does rails care if I change the schema?
Effectively, the last time I regenerated the scaffolding I overwrote
nothing; as far as I can tell, as an application developer, nothing
changed between the time that I got the classic error of “database
schema has changed” to now when the application works as I expect it.
I’m just wondering if this is some protection against developers who
don’t know wtf (like me) or if this is some out of date annoyance.
sincerely, (and with much love too