From 740566b02da51cf1359d794e83db1f00d58b3583 Mon Sep 17 00:00:00 2001 From: ncoronel Date: Thu, 25 Jun 2026 12:16:51 -0300 Subject: [PATCH] refactor(attachments): remove is_public field from Attachment model and migration --- app/Domains/Attachable/Models/Attachment.php | 2 -- .../migrations/2026_06_25_000500_create_attachments_table.php | 1 - 2 files changed, 3 deletions(-) diff --git a/app/Domains/Attachable/Models/Attachment.php b/app/Domains/Attachable/Models/Attachment.php index 5eef51b..9f18949 100644 --- a/app/Domains/Attachable/Models/Attachment.php +++ b/app/Domains/Attachable/Models/Attachment.php @@ -14,7 +14,6 @@ use Illuminate\Database\Eloquent\Relations\MorphTo; 'filename', 'type', 'mime_type', - 'is_public', 'extension', 'size', ])] @@ -28,7 +27,6 @@ class Attachment extends Model { return [ 'attachable_id' => 'integer', - 'is_public' => 'boolean', 'size' => 'integer', ]; } diff --git a/database/migrations/2026_06_25_000500_create_attachments_table.php b/database/migrations/2026_06_25_000500_create_attachments_table.php index c5a0431..79c7784 100644 --- a/database/migrations/2026_06_25_000500_create_attachments_table.php +++ b/database/migrations/2026_06_25_000500_create_attachments_table.php @@ -19,7 +19,6 @@ return new class extends Migration $table->string('filename'); $table->string('type')->nullable(); $table->string('mime_type'); - $table->boolean('is_public')->default(false); $table->string('extension', 20)->nullable(); $table->unsignedBigInteger('size')->default(0); $table->timestamps();