| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | |||
| 18 | public function up() |
||
| 19 | { |
||
| 20 | Schema::create('courses', function (Blueprint $table) { |
||
| 21 | $table->increments('id'); |
||
| 22 | $table->string('name'); |
||
| 23 | $table->integer('enrollment_id')->nullable(); |
||
| 24 | $table->timestamps(); |
||
| 25 | }); |
||
| 26 | Schema::create('course_study', function (Blueprint $table) { |
||
| 27 | $table->integer('course_id')->unsigned(); |
||
| 28 | $table->integer('study_id')->unsigned(); |
||
| 29 | $table->timestamps(); |
||
| 30 | $table->unique(['course_id', 'study_id']); |
||
| 31 | }); |
||
| 32 | } |
||
| 33 | /** |
||
| 44 |