Skip to content

Instantly share code, notes, and snippets.

@harrytran998
Last active March 2, 2020 11:12
Show Gist options
  • Save harrytran998/2b2c25d14534a1f44fb82509b27c8140 to your computer and use it in GitHub Desktop.
Save harrytran998/2b2c25d14534a1f44fb82509b27c8140 to your computer and use it in GitHub Desktop.
I don't have idea what I do
'use strict'
module.exports = {
up: (queryInterface, Sequelize) => {
return queryInterface.sequelize.query('CREATE EXTENSION IF NOT EXISTS "uuid-ossp";')
},
down: (queryInterface, Sequelize) => {
return queryInterface.sequelize.query('DROP EXTENSION IF EXISTS "uuid-ossp" RESTRICT;')
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment