DEV Community

Discussion on: Can you help me identify why I cannot run migrations in testing?

 
pcmagas profile image
Dimitrios Desyllas • Edited

By setting the test database, nope I am unable to run the migrations.

The cause is that the postgresql database I am using actually keeps the columns into the table even if I delete it from the table and just hides it from the user.

The solution is to reconstruct the test database. So how I can prepend my existing migrations with one that generates the database?