how to rollback a specific migration

 1. go to db / migrations 

 2. find the specific migration number 

 3. $  rake db:migrate:down VERSION=20220728103647

 4. change in the specific migration 

 5. rake db:migrate:up VERSION=20220728103647


Comments

Popular posts from this blog

Rails 7 Features :: Comparison with Rails 6 and Rails 5