3 ms·
> reliable migrations (writing them by hand? no thanks. Outsourcing to another library like knex? no thanks) IMHO, "real production features" means also caring
by Seb-C 6y ago
> reliable migrations (writing them by hand? no thanks. Outsourcing to another library like knex? no thanks)
IMHO, "real production features" means also caring about the long term maintenance, performance and reliability of the data.
My experience with ORMs (especially ActiveRecord patterns) is that it always becomes a mess once you reach a certain level of complexity. It is very fast to get started, but gets slower over time once you start having a lot of bugs and hard-to-solve behaviours.
- bakedbeanz 6y agoInteresting, then what is your alternative? It seems like hand-rolling all of your migrations would be an enormous pain on larger projects.
- Seb-C 6y agoWell, this project is my alternative, and so far I did not see any case where it fails, but I'd be happy to learn. This migration pattern is quite common in many frameworks, I just removed the query-building abstraction layer.