I posted it as an issue (
https://github.com/sequelize/cli/issues/105) but not sure it is. The documentation on migrations seems weak on this common migrations function, and so in googling for a way to run raw SQL in Sequelize migrations most people seem to suggest/use this:
migration.migrator.sequelize.query(theSql)
But, in my case, it seems to error. Seems like migration does not have a migrator, as it tells me that it "cannot read property 'sequelize' of undefined". Looking at a console dump of the migration object, I don't see a migrator. My guess is that something changed in some recent version? If so, how does one run raw sql now?