Undo scaffolding in rails

rails generate scaffold ...
rails destroy scaffold ...

You can undo whatever you did with

rails generate xxx

By

rails destroy xxx

For example this applies generators to migration, scaffold, model…etc

Advertisements

One thought on “Undo scaffolding in rails

  1. @femi The table was made with rake. The best way to remove it is running rake db:rollback before rails destroy scaffold or if it is not the last one you did rake db:migrate:down VERSION=20080906120000 you can find the number before its name in db/migrate – Travis Pessetto Aug 4

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s