mirror of
https://github.com/10h30/Test-Eloquent-Relationships.git
synced 2026-07-11 18:56:11 +09:00
Task 2 - no relationship
This commit is contained in:
@@ -16,7 +16,7 @@ class CreateTasksTable extends Migration
|
||||
Schema::create('tasks', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('name');
|
||||
$table->unsignedBigInteger('users_id');
|
||||
$table->unsignedBigInteger('users_id')->nullable();
|
||||
$table->foreign('users_id')->references('id')->on('users');
|
||||
$table->timestamps();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user