Passed
Push — master ( 3a79ed...30f336 )
by Brian
04:03
created

CreatePasswordResetsTable   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
dl 0
loc 20
rs 10
c 1
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A 2014_10_12_100000_create_password_resets_table.php$0 ➔ up() 0 6 1
A 2014_10_12_100000_create_password_resets_table.php$0 ➔ down() 0 3 1
1
<?php
2
3
use Illuminate\Database\Migrations\Migration;
4
use Illuminate\Database\Schema\Blueprint;
5
use Illuminate\Support\Facades\Schema;
6
7
return new class() extends Migration {
8
    /**
9
     * Run the migrations.
10
     */
11
    public function up()
12
    {
13
        Schema::create('password_resets', function (Blueprint $table) {
14
            $table->string('email')->index();
15
            $table->string('token');
16
            $table->timestamp('created_at')->nullable();
17
        });
18
    }
19
20
    /**
21
     * Reverse the migrations.
22
     */
23
    public function down()
24
    {
25
        Schema::dropIfExists('password_resets');
26
    }
27
};
28