| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 12 | 
| Code Lines | 8 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 12 | public function up()  | 
            ||
| 13 |     { | 
            ||
| 14 |         Schema::create('user_tokens', function (Blueprint $table) { | 
            ||
| 15 |             $table->increments('id'); | 
            ||
| 16 |             $table->integer('user_id')->unsigned(); | 
            ||
| 17 |             $table->string('access_token'); | 
            ||
| 18 | $table->timestamps();  | 
            ||
| 19 | |||
| 20 |             $table->unique('access_token'); | 
            ||
| 21 |             $table->foreign('user_id')->references('id')->on('users')->onDelete('cascade'); | 
            ||
| 22 | });  | 
            ||
| 23 | }  | 
            ||
| 24 | |||
| 34 |