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()