Yeah, I figured something like that was the case. Probably that's the case with most/all Rails generators (like most of the generators in the world) - they're good for a one-time kick-start, but not much good after that.
Still, a generator that could write on something other than a blank slate would be a very valuable addition to the toolkit. And doable. On Thursday, June 4, 2015 at 5:00:35 PM UTC-4, Colin Law wrote: > > On 4 June 2015 at 21:21, kenatsun <kena...@gmail.com <javascript:>> > wrote: > > ... > > However: This process has only a limited ability to update the Rails > > objects to handle the database change while preserving manually entered > > changes to them. Specifically: For each Rails file where the new > > (generated) version differs from the existing (possibly manually > modified) > > version, you get to choose between keeping the old version (so it > doesn't > > match the database changes) or replacing it with the new version (so any > > manual updates to the old version are lost). In other words, I haven't > > found a way to generate a new file that is a combination of the old and > the > > new - that is, it is identical to the old file in all respects except > that > > it implements the database schema changes. > > > > So... > > > > Next question: Are there any Rails tools that can generate a "combined" > > file in the sense just defined? Is there any way to generate a > "combined" > > file in the sense just defined? - either with other Rails tools or with > > options to the tools used in the above scenarios? > > The reason no work has been done on this is that the scaffold is > intended merely as a quick and dirty method of getting some basic > functionality up and running. By the time you have a real application > going it is most unlikely that much of the original scaffolding code > will remain. > > Colin > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/59f61713-443e-456f-be1b-56c92d4517c0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.