DB Migrations like in Rails

I really miss db migrations à la Rails:

What do we have for Meteor concerning this topic ?

I wrote my own with upgrade and fallback capability which works pretty well but you have to code what each thing does. It’s not packaged but I could prob split it out and share for discussion purposes if ur interested. I thought it was easy to write but I bet there’s a package that does this too.

There are quiet a few packages to handle DB migrations:

I personally use:

I also use percolate:migrations. If you decide on this package, make sure you read the readme, specifically: https://github.com/percolatestudio/meteor-migrations/#errors

Thank you all for your replies !

1 Like