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

CreateCompaniesTable::up()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 9

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 12
rs 9.4286
cc 1
eloc 9
nc 1
nop 0
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