Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Sequelize documentation is pretty bad for some of this stuff, but it has the functionality you listed. You can give Postgres a default uuid by setting the column options to ‘new Sequelize.UUIDV4()’, and queryInterface supports add, remove and change column.

The biggest annoyance I had with migrations was anything that needed a model to be defined inside the migration. I eventually gave up on that and just wrote my own scripts to work around it. But perhaps I just wasn’t persistent enough...



I am not super sure, but i remember trying this, and it did not work insides migrations :(


You might be right. It's quite a while since I was working on that project, and now I'm starting to doubt how sure I am about this...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: