src/Way/Generators/SchemaCreator.php
public function down(array $migrationData, $fields = [])
    {
        $this->guardAction($migrationData['action']);

        $opposites = [
            'delete' => 'create',
            'create' => 'delete',
            'remove' => 'add',
            'add'    => 'remove'
        ];

        $method = $opposites[$migrationData['action']] . 'Factory';

        return $this->$method($migrationData, $fields);
    }
public function down(array $migrationData, $fields = [])
    {
        $this->guardAction($migrationData['action']);

        $opposites = [
            'delete' => 'create',
            'create' => 'delete',
            'remove' => 'add',
            'add'    => 'remove'
        ];

        $method = $opposites[$migrationData['action']] . 'Factory';

        return $this->$method($migrationData, $fields);
    }
public function down ( array $ migrationData , $ fields = [ ] ) { $ this -> guardAction ( $ migrationData [ 'action' ] ) ; $ opposites = [ 'delete' => 'create' , 'create' => 'delete' , 'remove' => 'add' , 'add' => 'remove' ] ; $ method = $ opposites [ $ migrationData [ 'action' ] ] . 'Factory' ; return $ this -> $ method ( $ migrationData , $ fields ) ; }
Build the string for the migration file "down" method

@param array $migrationData
@param array $fields
@throws Exception
@return array|mixed|string
Build the string for the migration file down method