Can't restore database because migration in the database was in the (missing) discourse-ai plugin

This probably is about migrations by discourse-ai, not core.

So not on production?

What does SELECT * FROM pg_extension WHERE extname = 'vector'; tell you?