railsrun mirate command with databse name code example
Example 1: rails rollback multiple migrations
rake db:rollback STEP=n
# n = how many migrations you want to rollback
Example 2: ruby on rails db migrate
rails db:migrate
rake db:rollback STEP=n
# n = how many migrations you want to rollback
rails db:migrate