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

CreateUserMigration::migrate()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
cc 1
eloc 2
c 1
b 1
f 0
nc 1
nop 1
dl 0
loc 4
rs 10
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