Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 10 |
Lines | 14 |
Ratio | 100 % |
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->timestamps(); |
||
24 | }); |
||
25 | Schema::create('course_study', function (Blueprint $table) { |
||
26 | $table->integer('course_id')->unsigned(); |
||
27 | $table->integer('study_id')->unsigned(); |
||
28 | $table->timestamps(); |
||
29 | $table->unique(['course_id', 'study_id']); |
||
30 | }); |
||
31 | } |
||
32 | /** |
||
42 | } |