public function newMigration($name)
    {
        $time = time();
        $date = date("n/j/Y");

        $fileName = "{$time}_migration.php";
        if ($name) $fileName = "{$time}_{$name}.php";

        $file = $this->storagePath . "/" . $fileName;
        $class = 'Migration_' . ((int)$time);
        $contents = array('<?php');
        $contents[] = '/*';
        $contents[] = " * {$name} migration file";
        $contents[] = ' *';
        $contents[] = ' * @author ';
        $contents[] = ' * @version 1.0';
        $contents[] = " * @date $date";
        $contents[] = ' */';
        $contents[] = 'class ' . $class . ' extends \Core\Migration';
        $contents[] = '{';
        $contents[] = '';
        $contents[] = "    public function up()";
        $contents[] = "    {";
        $contents[] = "";
        $contents[] = "    }";
        $contents[] = "";
        $contents[] = "    public function down()";
        $contents[] = "    {";
        $contents[] = "";
        $contents[] = "    }";
        $contents[] = '}';

        if (file_put_contents($file, implode("\n", $contents))) {
            echo 'Create ' . $file . "\n\r";
            return $file;
        }
        return false;
    }