From 29b8334b060dc0c05a509d523ead4b3a30229fef Mon Sep 17 00:00:00 2001 From: vantezzen Date: Thu, 5 Sep 2019 11:22:49 +0200 Subject: Add eslint --- .../migrations/1566554359294_workspace_schema.js | 29 +++++++++++----------- 1 file changed, 14 insertions(+), 15 deletions(-) (limited to 'database/migrations/1566554359294_workspace_schema.js') diff --git a/database/migrations/1566554359294_workspace_schema.js b/database/migrations/1566554359294_workspace_schema.js index 84e0bb9..0a3c138 100644 --- a/database/migrations/1566554359294_workspace_schema.js +++ b/database/migrations/1566554359294_workspace_schema.js @@ -1,25 +1,24 @@ -'use strict' /** @type {import('@adonisjs/lucid/src/Schema')} */ -const Schema = use('Schema') +const Schema = use('Schema'); class WorkspaceSchema extends Schema { - up () { + up() { this.create('workspaces', (table) => { - table.increments() - table.string('workspaceId', 80).notNullable().unique() - table.string('userId', 80).notNullable() - table.string('name', 80).notNullable() - table.integer('order') - table.json('services') - table.json('data') - table.timestamps() - }) + table.increments(); + table.string('workspaceId', 80).notNullable().unique(); + table.string('userId', 80).notNullable(); + table.string('name', 80).notNullable(); + table.integer('order'); + table.json('services'); + table.json('data'); + table.timestamps(); + }); } - down () { - this.drop('workspaces') + down() { + this.drop('workspaces'); } } -module.exports = WorkspaceSchema +module.exports = WorkspaceSchema; -- cgit v1.2.3-70-g09d2