How to roll back a database migration?

(Khoa Nguyen) #1

I had to restore to an old backup version of my community to solve the Tagger plugin error
About 100 posts was lost.
I may think that roll back the migration can work.
Can you guys show me how to do that?
This is the command when I do the migration

rake tagger:install:migrations
rake db:migrate SCOPE=tagger

(Sam Saffron) #2

You are going to have to raise it with @lightyear, in general we do not support rolling back migrations, we only go forward.

(Khoa Nguyen) #3

Yes. I report about this error in github with @lightyear
I want to rolling back migrations because I can’t restore with discourse function (manually restore work)