Completed
Push — master ( ef62ef...3339ef )
by Mike
02:44
created

CreateBooks   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
dl 0
loc 17
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A up() 0 10 1
A down() 0 2 1
1
<?php
2
3
use Illuminate\Database\Schema\Blueprint;
4
use Illuminate\Database\Migrations\Migration;
5
6
class CreateBooks extends Migration
7
{
8
    public function up()
9
    {
10
        Schema::create('books', function (Blueprint $table) {
11
            $table->increments('id');
12
            $table->unsignedInteger('author_id');
13
            $table->timestamps();
14
15
            $table->text('description');
16
            $table->dateTime('published_at');
17
            $table->string('title');
18
        });
19
    }
20
21
    public function down()
22
    {
23
        //
24
    }
25
}
26