Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
12 | public function up() |
||
13 | { |
||
14 | Schema::create('user_access_log', function($table) |
||
15 | { |
||
16 | $table->engine = 'InnoDB'; |
||
17 | $table->increments('id'); |
||
18 | |||
19 | $table->integer('user_id')->unsigned()->nullable(); |
||
20 | $table->foreign('user_id')->references('id')->on('users')->onDelete('set null'); |
||
21 | |||
22 | $table->string('ip_address')->nullable(); |
||
23 | |||
24 | $table->timestamps(); |
||
25 | }); |
||
26 | } |
||
27 | |||
40 |