Are you asking about how to reverse this? There is a destroy script available with the rails install:
yvaine:reverseblade rilindo$ ruby script/destroy
Usage: script/destroy generator [options] [args]
Rails Info:
-v, --version Show the Rails version number and quit.
-h, --help Show this help message and quit.
General Options:
-p, --pretend Run but do not make any changes.
-f, --force Overwrite files that already exist.
-s, --skip Skip files that already exist.
-q, --quiet Suppress normal output.
-t, --backtrace Debugging: show backtrace on errors.
-c, --svn Modify files with subversion. (Note: svn must be in path)
-g, --git Modify files with git. (Note: git must be in path)
Installed Generators
Builtin: controller, helper, integration_test, mailer, metal, migration, model, observer, performance_test, plugin, resource, scaffold, session_migration
script/generate command. For instance, ‘script/destroy migration CreatePost’
will delete the appropriate XXX_create_post.rb migration file in db/migrate,
while ‘script/destroy scaffold Post’ will delete the posts controller and
views, post model and migration, all associated tests, and the map.resources
:posts line in config/routes.rb.
For instructions on finding new generators, run script/generate.
yvaine:reverseblade rilindo$
Same options as generate, except it cleans out your generated files.