renameColumn('attachable_type', 'addendum_type'); $table->renameColumn('attachable_id', 'addendum_id'); }); } /** * Reverse the migrations. */ public function down(): void { Schema::table('attachments', function (Blueprint $table) { $table->renameColumn('addendum_type', 'attachable_type'); $table->renameColumn('addendum_id', 'attachable_id'); }); } };