rails 5.2 migration rollback to previous version code example
Example: rails rollback multiple migrations
rake db:rollback STEP=n
# n = how many migrations you want to rollback
rake db:rollback STEP=n
# n = how many migrations you want to rollback