Check out example codes for "rails undo scaffold". It will help you in understanding the concepts better.

Code Example 1

1. rake db:rollback
2. rails destroy scaffold NameOfScaffold

Learn ReactJs, React Native from akashmittal.com