views:

29

answers:

2
+3  Q: 

Scafflod revert

I have run ruby script/generate scaffold test name:string.....

I want to reverse it. Please give your opinion

+7  A: 
ruby script/destroy scaffold test
jtbandes
A: 

hi sachinrathore11,

I'm not exactly sure what you mean by reversing (do you want to remove all the files that were created ??)

But if you want to revert the migration you can do so

rake db:rollback or rake db:rollback STEP=

cheers

sameera

sameera207