Completed
Push — master ( 5e74d9...55d050 )
by Guilherme Luiz Argentino
06:49
created

CreateUsersTable   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
dl 0
loc 34
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 3
1
<?php
2
3
use Illuminate\Support\Facades\Schema;
4
use Illuminate\Database\Schema\Blueprint;
5
use Illuminate\Database\Migrations\Migration;
6
7
class CreateUsersTable extends Migration
8
{
9
    /**
10
     * Run the migrations.
11
     *
12
     * @return void
13
     */
14
    public function up()
15
    {
16
        Schema::create('users', function (Blueprint $table) {
17
            $table->increments('id');
18
            $table->string('name');
19
            $table->string('email')->nullable();
20
            $table->string('password')->nullable();
21
            $table->string('avatar')->nullable();
22
            $table->string('activation_token')->nullable();
23
            $table->boolean('confirmed')->default(0);
24
            $table->rememberToken();
25
            $table->timestamps();
26
            
27
            $table->engine = 'InnoDB';
28
        });
29
    }
30
31
    /**
32
     * Reverse the migrations.
33
     *
34
     * @return void
35
     */
36
    public function down()
37
    {
38
        Schema::dropIfExists('users');
39
    }
40
}
41