Code Duplication    Length = 29-29 lines in 2 locations

src/migrations/2014_07_31_165825_create_roles_table.php 1 location

@@ 6-34 (lines=29) @@
3
use Illuminate\Database\Schema\Blueprint;
4
use Illuminate\Database\Migrations\Migration;
5
6
class CreateRolesTable extends Migration {
7
8
    /**
9
     * Run the migrations.
10
     *
11
     * @return void
12
     */
13
    public function up()
14
    {
15
        Schema::create('roles', function(Blueprint $table)
16
        {
17
            $table->increments('id');
18
            $table->string('role_name');
19
            $table->string('description')->nullable();
20
            $table->timestamps();
21
        });
22
    }
23
24
    /**
25
     * Reverse the migrations.
26
     *
27
     * @return void
28
     */
29
    public function down()
30
    {
31
        Schema::drop('roles');
32
    }
33
34
}
35

src/migrations/2014_07_31_165858_create_capabilities_table.php 1 location

@@ 6-34 (lines=29) @@
3
use Illuminate\Database\Schema\Blueprint;
4
use Illuminate\Database\Migrations\Migration;
5
6
class CreateCapabilitiesTable extends Migration {
7
8
    /**
9
     * Run the migrations.
10
     *
11
     * @return void
12
     */
13
    public function up()
14
    {
15
        Schema::create('capabilities', function(Blueprint $table)
16
        {
17
            $table->increments('id');
18
            $table->string('capability');
19
            $table->string('description')->nullable();
20
            $table->timestamps();
21
        });
22
    }
23
24
    /**
25
     * Reverse the migrations.
26
     *
27
     * @return void
28
     */
29
    public function down()
30
    {
31
        Schema::drop('capabilities');
32
    }
33
34
}
35