protected function getMigrationPaths()
{
$slug = $this->argument('slug');
$paths = [];
if ($slug) {
$paths[] = module_path($slug, 'Database/Migrations');
} else {
foreach ($this->module->all() as $module) {
$paths[] = module_path($module['slug'], 'Database/Migrations');
}
}
return $paths;
}