Software Development
Pages
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment