# Heroku Garden - reversing or changing a 'generate scaffold' command

**URL:** <https://www.ruby-forum.com/t/heroku-garden-reversing-or-changing-a-generate-scaffold-command/165333>\
**Category:** Rails\
**Created:** [April 12, 2009, 3:40pm UTC](https://www.ruby-forum.com/t/heroku-garden-reversing-or-changing-a-generate-scaffold-command/165333 "2009-04-12T15:40:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![clive](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f08c70/32.png) [@clive](https://www.ruby-forum.com/u/clive)\
**Post date:** [April 12, 2009, 3:40pm UTC](https://www.ruby-forum.com/t/heroku-garden-reversing-or-changing-a-generate-scaffold-command/165333/1 "2009-04-12T15:40:03Z")

</div>

In Heroku Garden, is there a way of reversing or changing a ‘generate  
scaffold’ command?  
I often find I need to make changes to the scaffolded application but  
I do not know how to.

‘script/destroy scaffold Modelname’ from the console doesn’t seem to  
work.  
For example, I generated a Product scaffold in Heroku Garden.  
When I try to destroy it using the console, I get the following error:

script/destroy scaffold Product  
SyntaxError: compile error  
/home/heroku\_rack/lib/init.rb:1: syntax error, unexpected tIDENTIFIER,  
expecting kDO or ‘{’ or ‘(’  
script/destroy scaffold Product  
^

Does anyone have any ideas on this?  
(I’m a Rails/OO newbie)?

Many thanks
