Skip to content

Instantly share code, notes, and snippets.

Created October 2, 2017 14:39
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 anonymous/b384eb5e65ad441665e24465c072de6f to your computer and use it in GitHub Desktop.
Save anonymous/b384eb5e65ad441665e24465c072de6f to your computer and use it in GitHub Desktop.
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