Completed
Push — master ( f8f0f3...173874 )
by Andrey
01:42
created

CreatePermissionsTable::down()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 4
Ratio 100 %

Importance

Changes 0
Metric Value
dl 4
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
use Illuminate\Support\Facades\Schema;
4
use Illuminate\Database\Schema\Blueprint;
5
use Illuminate\Database\Migrations\Migration;
6
7
/**
8
 * Class CreatePermissionsTable
9
 *
10
 * @author Andrey Girnik <[email protected]>
11
 */
12 View Code Duplication
class CreatePermissionsTable extends Migration
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
13
{
14
    /**
15
     * Run the migrations.
16
     * @return void
17
     */
18
    public function up()
19
    {
20
        Schema::create('permissions', function (Blueprint $table) {
21
            $table->increments('id');
22
            $table->string('name', 191);
23
            $table->string('slug', 191)->unique();
24
            $table->string('description', 191);
25
            $table->timestamps();
26
        });
27
    }
28
29
    /**
30
     * Reverse the migrations.
31
     * @return void
32
     */
33
    public function down()
34
    {
35
        Schema::dropIfExists('permissions');
36
    }
37
}
38