Monday, August 15, 2011

[Rails] Re: Can't force scaffold to overwrite files?

Use "script/destroy scaffold client admin"

If you can create it with 'script/generate', you should be able to
destroy it with 'script/destroy'. However, there's an inherent
inconvenience if you use this with an entity that creates a migration
(e.g. model, scaffold).

Once you rake the migration, it should be in your schema, so if you
destroy that migration and put another one with the same name (but
different timestamp) in its place, I'm not sure whether raking will work
properly. You might have to change your schema or database manually
before raking will work.

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate