fix project_id field in Label
Tests & Lint & Deploy to Railway / build (2.6.6, 20.x, 8.3) (push) Failing after 2m0s Details

This commit is contained in:
aslan 2024-05-30 16:52:51 +03:00
parent 7901346eb9
commit d05007b21e
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ class Label extends Model
protected $fillable = [
'id',
'name',
'department_id',
'project_id',
'created_by_id',
];

View File

@ -11,7 +11,7 @@ return new class extends Migration
Schema::create('labels', function (Blueprint $table) {
$table->id();
$table->string('name', 255);
$table->foreignId('project_id')->constrained('projects');
$table->foreignId('project_id')->nullable()->constrained('projects');
$table->timestamps();
});
}