Total Complexity | 2 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class CreateAbilitiesTable extends Migration |
||
8 | { |
||
9 | /** |
||
10 | * Run the migrations. |
||
11 | * |
||
12 | * @return void |
||
13 | */ |
||
14 | public function up() |
||
15 | { |
||
16 | Schema::create('abilities', function (Blueprint $table) { |
||
17 | $table->uuid('id'); |
||
18 | $table->string('name')->unique(); |
||
19 | $table->string('label'); |
||
20 | $table->string('slug')->unique(); |
||
21 | $table->string('description'); |
||
22 | $table->boolean('active')->default(true); |
||
23 | $table->timestamps(); |
||
24 | |||
25 | $table->primary('id'); |
||
26 | }); |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * Reverse the migrations. |
||
31 | * |
||
32 | * @return void |
||
33 | */ |
||
34 | public function down() |
||
37 | } |
||
38 | } |
||
39 |