Lambda-School-Labs/allay-be

View on GitHub
data/migrations/20200428091407_users_table.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function down has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

exports.down = function (knex) {
  return knex('users')
    .del()
    .then(() => {
      return knex.schema.alterTable('users', tbl => {
Severity: Minor
Found in data/migrations/20200428091407_users_table.js - About 1 hr to fix

    Function up has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    exports.up = function (knex) {
      return knex('users')
        .del()
        .then(() => {
          return knex.schema.alterTable('users', tbl => {
    Severity: Minor
    Found in data/migrations/20200428091407_users_table.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status