From 29b8334b060dc0c05a509d523ead4b3a30229fef Mon Sep 17 00:00:00 2001 From: vantezzen Date: Thu, 5 Sep 2019 11:22:49 +0200 Subject: Add eslint --- database/migrations/1503250034279_user.js | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) (limited to 'database/migrations/1503250034279_user.js') diff --git a/database/migrations/1503250034279_user.js b/database/migrations/1503250034279_user.js index 9148593..5010bec 100644 --- a/database/migrations/1503250034279_user.js +++ b/database/migrations/1503250034279_user.js @@ -1,22 +1,21 @@ -'use strict' /** @type {import('@adonisjs/lucid/src/Schema')} */ -const Schema = use('Schema') +const Schema = use('Schema'); class UserSchema extends Schema { - up () { + up() { this.create('users', (table) => { - table.increments() - table.string('username', 80).notNullable() - table.string('email', 254).notNullable().unique() - table.string('password', 60).notNullable() - table.timestamps() - }) + table.increments(); + table.string('username', 80).notNullable(); + table.string('email', 254).notNullable().unique(); + table.string('password', 60).notNullable(); + table.timestamps(); + }); } - down () { - this.drop('users') + down() { + this.drop('users'); } } -module.exports = UserSchema +module.exports = UserSchema; -- cgit v1.2.3-70-g09d2