Last active
February 14, 2016 16:09
-
-
Save chuck0523/e4380f6ca3de951ec129 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = (function() { | |
"use strict"; | |
const Nodal = require('nodal'); | |
class CreateWord extends Nodal.Migration { | |
constructor(db) { | |
super(db); | |
this.id = 2016021122463566; | |
} | |
up() { | |
return [ | |
this.createTable("words", [{"name": "nane", "type": "string", "properties": {"nullable":false}}, | |
{"name": "meaning", "type": "string", "properties": {"nullable":false}}]) | |
]; | |
} | |
down() { | |
return [ | |
this.dropTable("words") | |
]; | |
} | |
} | |
return CreateWord; | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment