Completed
Push — master ( c5c126...29bff4 )
by Edson
01:37
created

UserSchema   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 13
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A down() 0 2 1
A up() 0 6 1
1
<?php
2
3
namespace Bonfim\ActiveRecord\Examples\Database\Migrations;
4
5
use Bonfim\ActiveRecord\Schema;
6
use Bonfim\ActiveRecord\Table;
7
8
class UserSchema extends Schema
9
{
10
    public function up()
11
    {
12
        $this->create('users', function (Table $table) {
13
            $table->increments();
14
//                ->unsigned();
15
            $table->string('name')->notNull();
16
        });
17
    }
18
19
    public function down()
20
    {
21
    }
22
}
23