HackMD/lib/migrations/20150515125813-create-temp.js
2017-03-27 19:23:00 +08:00

18 lines
406 B
JavaScript

'use strict'
module.exports = {
up: function (queryInterface, Sequelize) {
return queryInterface.createTable('Temp', {
id: {
type: Sequelize.STRING,
primaryKey: true
},
date: Sequelize.TEXT,
createdAt: Sequelize.DATE,
updatedAt: Sequelize.DATE
})
},
down: function (queryInterface, Sequelize) {
return queryInterface.dropTable('Temp')
}
}