Should I clean up my migrations before getting serious with my project?

I want to know whether it’s good practice to clean up migrations before launching because right now i have like 30 of them and some have only one line removing something i did in the past because it was wrong. I don’t mind resetting the database since there’s nothing of value there yet. Should I go for it?

1 Like

You could collapse your migrations:
Collapsing Ecto Migrations. As with dead code, a migration file… | by Moxley Stratton | Medium.

7 Likes

Just collapse them as the other poster said. Export your DB schema and import it as one big migration and then start over from there.

1 Like

This post would be helpful, too. Get Rid of Your Old Database Migrations – Andrea Leopardi

1 Like