CreateTagGroupsTable   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 6
c 2
b 0
f 0
dl 0
loc 14
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A up() 0 6 1
A down() 0 3 1
1
<?php
2
3
use Illuminate\Database\Migrations\Migration;
4
use Illuminate\Database\Schema\Blueprint;
5
6
class CreateTagGroupsTable extends Migration {
7
8
	public function up()
9
	{
10
		Schema::create('tagging_tag_groups', function(Blueprint $table) {
11
			$table->increments('id');
12
			$table->string('slug', 125)->index();
13
			$table->string('name', 125);
14
		});
15
	}
16
17
	public function down()
18
	{
19
		Schema::drop('tagging_tag_groups');
20
	}
21
}
22