בנייה מחדש גורמת לשגיאת db:migrate עקב plugin פגום

What version of postgres are you using? I think that 12 is required. 13 is recommended.