diff options
Diffstat (limited to 'lib/migrations/20150515125813-create-temp.js')
-rw-r--r-- | lib/migrations/20150515125813-create-temp.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/migrations/20150515125813-create-temp.js b/lib/migrations/20150515125813-create-temp.js new file mode 100644 index 00000000..ee7b9789 --- /dev/null +++ b/lib/migrations/20150515125813-create-temp.js @@ -0,0 +1,18 @@ +'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') + } +} |