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/1566554231482_recipe_schema.js | 23 +++++++++++----------- 1 file changed, 11 insertions(+), 12 deletions(-) (limited to 'database/migrations/1566554231482_recipe_schema.js') diff --git a/database/migrations/1566554231482_recipe_schema.js b/database/migrations/1566554231482_recipe_schema.js index 7d8f5a8..14fcb82 100644 --- a/database/migrations/1566554231482_recipe_schema.js +++ b/database/migrations/1566554231482_recipe_schema.js @@ -1,22 +1,21 @@ -'use strict' /** @type {import('@adonisjs/lucid/src/Schema')} */ -const Schema = use('Schema') +const Schema = use('Schema'); class RecipeSchema extends Schema { - up () { + up() { this.create('recipes', (table) => { - table.increments() - table.string('name', 80).notNullable() - table.string('recipeId', 254).notNullable().unique() - table.json('data') - table.timestamps() - }) + table.increments(); + table.string('name', 80).notNullable(); + table.string('recipeId', 254).notNullable().unique(); + table.json('data'); + table.timestamps(); + }); } - down () { - this.drop('recipes') + down() { + this.drop('recipes'); } } -module.exports = RecipeSchema +module.exports = RecipeSchema; -- cgit v1.2.3-70-g09d2