Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | public function up() |
||
15 | { |
||
16 | Schema::create('levels', function (Blueprint $table) { |
||
17 | $table->increments('id'); |
||
18 | $table->string('name')->unique(); |
||
19 | $table->string('label')->nullable(); |
||
20 | $table->text('description')->nullable(); |
||
21 | $table->integer('rank')->unsigned(); |
||
22 | $table->timestamps(); |
||
23 | |||
24 | $table->index('name'); |
||
25 | $table->index('rank'); |
||
26 | }); |
||
27 | } |
||
28 | |||
39 |