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