From 29b8334b060dc0c05a509d523ead4b3a30229fef Mon Sep 17 00:00:00 2001 From: vantezzen Date: Thu, 5 Sep 2019 11:22:49 +0200 Subject: Add eslint --- .../migrations/1566385379883_service_schema.js | 27 +++++++++++----------- 1 file changed, 13 insertions(+), 14 deletions(-) (limited to 'database/migrations/1566385379883_service_schema.js') diff --git a/database/migrations/1566385379883_service_schema.js b/database/migrations/1566385379883_service_schema.js index a725699..093fb13 100644 --- a/database/migrations/1566385379883_service_schema.js +++ b/database/migrations/1566385379883_service_schema.js @@ -1,24 +1,23 @@ -'use strict' /** @type {import('@adonisjs/lucid/src/Schema')} */ -const Schema = use('Schema') +const Schema = use('Schema'); class ServiceSchema extends Schema { - up () { + up() { this.create('services', (table) => { - table.increments() - table.string('userId', 80).notNullable() - table.string('serviceId', 80).notNullable() - table.string('name', 80).notNullable() - table.string('recipeId', 254).notNullable() - table.json('settings') - table.timestamps() - }) + table.increments(); + table.string('userId', 80).notNullable(); + table.string('serviceId', 80).notNullable(); + table.string('name', 80).notNullable(); + table.string('recipeId', 254).notNullable(); + table.json('settings'); + table.timestamps(); + }); } - down () { - this.drop('services') + down() { + this.drop('services'); } } -module.exports = ServiceSchema +module.exports = ServiceSchema; -- cgit v1.2.3-70-g09d2