Software Development
Pages
(Move to ...)
Home
About
Contact
▼
Friday, August 12, 2016
Undo Scaffolding in Rails
You can undo the scaffold command by using the destroy. You should also rollback the database transaction, if you have already run the migration generated by that scaffold.
rails destroy scaffold
'myscaffold'
rake db
:
rollback
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment