style(migration): use parentheses in arrow function

* Update 1503248427885_user.js
* Update 1503248427886_token.js
This commit is contained in:
Luiz Felipe 2018-05-21 18:37:14 -03:00 committed by Harminder
parent ba18e2d712
commit 550bcd891d
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ const Schema = use('Schema')
class UserSchema extends Schema {
up () {
this.create('users', table => {
this.create('users', (table) => {
table.increments()
table.string('username', 80).notNullable().unique()
table.string('email', 254).notNullable().unique()

View File

@ -4,7 +4,7 @@ const Schema = use('Schema')
class TokensSchema extends Schema {
up () {
this.create('tokens', table => {
this.create('tokens', (table) => {
table.increments()
table.integer('user_id').unsigned().references('id').inTable('users')
table.string('token', 255).notNullable().unique().index()