Passed
Push — master ( 7bc374...cf39f3 )
by Arthur
05:05
created

CreateMachineMigration   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

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

1 Method

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