Created
October 2, 2017 14:39
-
-
Save anonymous/b384eb5e65ad441665e24465c072de6f 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
this.create('posts', (table) => { | |
table.increments() | |
table.string('title').default('test').notNullable() | |
table.text('content').notNullable() | |
table.timestamps() | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment