View file database/upgrades/20180306180222_rename_comments_in_blogs.php
<?php use Phinx\Migration\AbstractMigration; class RenameCommentsInBlogs extends AbstractMigration { /** * Migrate Change. */ public function change() { $table = $this->table('blogs'); $table->renameColumn('comments', 'count_comments'); } }