Standard Posted by aMi Posted on 2012-12-26 Posted under Programming Languages and Frameworks, Ruby on Rails Comments 1 Comment 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 Share this:TwitterFacebookLinkedInGoogleRedditTumblrPinterestPocketEmailPrintLike this:Like Loading... Related generateRailsrails destroyrails generate scaffoldscaffoldingundo scaffolding Post navigation ← SQLite GUI Program Ruby on Rails Templating – Static Pages → One thought on “Undo scaffolding in rails” @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 Reply Leave a Reply Cancel reply Enter your comment here... Fill in your details below or click an icon to log in: Email (required) (Address never made public) Name (required) Website You are commenting using your WordPress.com account. ( Log Out / Change ) You are commenting using your Twitter account. ( Log Out / Change ) You are commenting using your Facebook account. ( Log Out / Change ) You are commenting using your Google+ account. ( Log Out / Change ) Cancel Connecting to %s Notify me of new comments via email.