Skip to content

Instantly share code, notes, and snippets.

@chuck0523
Last active February 14, 2016 16:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chuck0523/e4380f6ca3de951ec129 to your computer and use it in GitHub Desktop.
Save chuck0523/e4380f6ca3de951ec129 to your computer and use it in GitHub Desktop.
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