Completed
Pull Request — master (#372)
by Mike
31:01 queued 16:07
created

CreateAuthors   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 3
dl 0
loc 16
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A up() 0 13 1
1
<?php
2
3
use Illuminate\Database\Schema\Blueprint;
4
use Illuminate\Database\Migrations\Migration;
5
6
class CreateAuthors extends Migration
7
{
8
    public function up()
9
    {
10
        Schema::create('authors', function (Blueprint $table) {
11
            $table->increments('id');
12
            $table->timestamps();
13
            $table->softDeletes();
14
15
            $table->string('email');
16
            $table->boolean("is_famous")->default(false);
17
            $table->string('name');
18
            $table->json("finances")->nullable();
19
        });
20
    }
21
}
22