| Total Complexity | 2 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class CreatePermissionsTable extends Migration |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * Run the migrations. |
||
| 16 | * @return void |
||
| 17 | */ |
||
| 18 | public function up() |
||
| 19 | { |
||
| 20 | Schema::create('permissions', function (Blueprint $table) { |
||
| 21 | $table->increments('id'); |
||
| 22 | $table->string('name', 191); |
||
| 23 | $table->string('slug', 191)->unique(); |
||
| 24 | $table->string('description', 191); |
||
| 25 | $table->timestamps(); |
||
| 26 | }); |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Reverse the migrations. |
||
| 31 | * @return void |
||
| 32 | */ |
||
| 33 | public function down() |
||
| 36 | } |
||
| 37 | } |
||
| 38 |