refactor(attachments): remove is_public field from Attachment model and migration
This commit is contained in:
@@ -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',
|
||||
];
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user