Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
17 | public function up() |
||
18 | { |
||
19 | Schema::create('temporary_access_tokens', function (Blueprint $table) { |
||
20 | $table->unsignedInteger('authenticable_id'); |
||
21 | $table->string('cipher_text', 64); |
||
22 | $table->timestamp('created_at')->useCurrent(); |
||
23 | $table->timestamp('updated_at')->useCurrent(); |
||
24 | $table->unsignedSmallInteger('expiry_time')->nullable(); |
||
25 | |||
26 | $table->unique(['authenticatable_id', 'cipher_text']); |
||
27 | }); |
||
28 | } |
||
29 | |||
38 |