CreateStatusesTable   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 16
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A down() 0 3 1
A up() 0 8 1
1
<?php
2
3
use Illuminate\Database\Migrations\Migration;
4
use Illuminate\Database\Schema\Blueprint;
5
use Illuminate\Support\Facades\Schema;
6
7
class CreateStatusesTable extends Migration
8
{
9
    public function up()
10
    {
11
        Schema::create('statuses', function (Blueprint $table) {
12
            $table->increments('id');
13
            $table->string('name');
14
            $table->text('reason')->nullable();
15
            $table->morphs('model');
16
            $table->timestamps();
17
        });
18
    }
19
20
    public function down()
21
    {
22
        Schema::dropIfExists('statuses');
23
    }
24
}
25