Passed
Push — master ( 3d397a...3f0190 )
by Andrey
12:15
created

RenameRolesAndPermissionsPivotTables::schema()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 4
rs 10
1
<?php
2
3
class RenameRolesAndPermissionsPivotTables extends BaseMigration
4
{
5
    public function up()
6
    {
7
        $this->rename($this->user_roles, $this->user_role);
8
        $this->rename($this->role_permissions, $this->role_permission);
9
    }
10
11
    public function down()
12
    {
13
        $this->rename($this->user_role, $this->user_roles);
14
        $this->rename($this->role_permission, $this->role_permissions);
15
    }
16
}
17