public function log($migration) { return $this->table()->insert(['migration' => $migration, 'batch' => $this->getNextBatchNumber()]); }