From 550bcd891d89ad54f77a518a660569ecf7c8ed1d Mon Sep 17 00:00:00 2001 From: Luiz Felipe Date: Mon, 21 May 2018 18:37:14 -0300 Subject: [PATCH] style(migration): use parentheses in arrow function * Update 1503248427885_user.js * Update 1503248427886_token.js --- database/migrations/1503248427885_user.js | 2 +- database/migrations/1503248427886_token.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/database/migrations/1503248427885_user.js b/database/migrations/1503248427885_user.js index ee98b44..4d4b969 100644 --- a/database/migrations/1503248427885_user.js +++ b/database/migrations/1503248427885_user.js @@ -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() diff --git a/database/migrations/1503248427886_token.js b/database/migrations/1503248427886_token.js index fc65e46..da2663f 100644 --- a/database/migrations/1503248427886_token.js +++ b/database/migrations/1503248427886_token.js @@ -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()