Check out example codes for "rake db:rollback not doing anything". It will help you in understanding the concepts better.
Code Example 1
bundle exec rake db:migrate:down VERSION=<VERSION_TO_MIGRATE> # obtain the version number by running bundle exec rake db:migrate:status
Learn ReactJs, React Native from akashmittal.com