Completed
Push — master ( f2f6fa...1beb9c )
by claudio
03:43
created

CreateCompaniesTable   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 30
rs 10
1
<?php
2
3
use Illuminate\Database\Schema\Blueprint;
4
use Illuminate\Database\Migrations\Migration;
5
6
class CreateCompaniesTable extends Migration
7
{
8
    /**
9
     * Run the migrations.
10
     *
11
     * @return void
12
     */
13
    public function up()
14
    {
15
        Schema::create('companies', function (Blueprint $table) {
16
            $table->increments('id');
17
            $table->string('name')->unique();
18
            $table->string('email')->unique();
19
            $table->string('password', 60);
20
            $table->boolean('verified');
21
            $table->rememberToken();
22
            $table->timestamps();
23
        });
24
    }
25
26
    /**
27
     * Reverse the migrations.
28
     *
29
     * @return void
30
     */
31
    public function down()
32
    {
33
        Schema::drop('companies');
34
    }
35
}
36