Completed
Push — master ( 0f9c0f...660c80 )
by Arthur
09:15
created

CreateUserMigration   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
eloc 4
c 1
b 1
f 0
dl 0
loc 8
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A migrate() 0 4 1
1
<?php
2
3
class CreateUserMigration extends \Foundation\Abstracts\Migrations\MongoMigration
4
{
5
    protected $collection = 'users';
6
7
    protected function migrate(\Jenssegers\Mongodb\Schema\Blueprint $collection)
8
    {
9
        $collection->unique('auth0_id');
10
        $collection->unique('api_token');
11
    }
12
13
}
14