src/Towel/Migration/BaseMigration.php
public function create() {
        $migration = $this->getMessages();
        if (!$migration) {
            $this->db()->insert($this->table, array('migration' => get_class($this), 'state' => false));
        } else {
            throw new \Exception('Migration ' .  get_class($this) . ' already created');
        }
    }
public function create() {
        $migration = $this->getMessages();
        if (!$migration) {
            $this->db()->insert($this->table, array('migration' => get_class($this), 'state' => false));
        } else {
            throw new \Exception('Migration ' .  get_class($this) . ' already created');
        }
    }
public function create ( ) { $ migration = $ this -> getMessages ( ) ; if ( ! $ migration ) { $ this -> db ( ) -> insert ( $ this -> table , array ( 'migration' => get_class ( $ this ) , 'state' => false ) ) ; } else { throw new \ Exception ( 'Migration ' . get_class ( $ this ) . ' already created' ) ; } }
Creates the record in the database of the migration.

@throws \Exception
Creates the record in the database of the migration .