<?php


use Phinx\Seed\AbstractSeed;

class Currencies extends AbstractSeed
{
    /**
     * Run Method.
     *
     * Write your database seeder using this method.
     *
     * More information on writing seeders is available here:
     * https://book.cakephp.org/phinx/0/en/seeding.html
     */
    public function run()
    {
      $data = [
        [
          'code' => 'CLP',
          'name' => 'Peso Chileno'
        ],
        [
          'code' => 'CLF',
          'name' => 'Unidad de Fomento'
        ],
        [
          'code' => 'USD',
          'name' => 'US Dollar'
        ],
        [
          'code' => 'BTC',
          'name' => 'Bitcoin'
        ]
      ];
      $this->table('currencies')->insert($data)->saveData();
    }
}
