refactor(attachments): remove is_public field from Attachment model and migration

This commit is contained in:
2026-06-25 12:16:51 -03:00
parent b874a45724
commit 740566b02d
2 changed files with 0 additions and 3 deletions

View File

@@ -14,7 +14,6 @@ use Illuminate\Database\Eloquent\Relations\MorphTo;
'filename', 'filename',
'type', 'type',
'mime_type', 'mime_type',
'is_public',
'extension', 'extension',
'size', 'size',
])] ])]
@@ -28,7 +27,6 @@ class Attachment extends Model
{ {
return [ return [
'attachable_id' => 'integer', 'attachable_id' => 'integer',
'is_public' => 'boolean',
'size' => 'integer', 'size' => 'integer',
]; ];
} }

View File

@@ -19,7 +19,6 @@ return new class extends Migration
$table->string('filename'); $table->string('filename');
$table->string('type')->nullable(); $table->string('type')->nullable();
$table->string('mime_type'); $table->string('mime_type');
$table->boolean('is_public')->default(false);
$table->string('extension', 20)->nullable(); $table->string('extension', 20)->nullable();
$table->unsignedBigInteger('size')->default(0); $table->unsignedBigInteger('size')->default(0);
$table->timestamps(); $table->timestamps();