public function handle()
{
$migrations = $this->app->make('migration.repository');
if (!$migrations->repositoryExists()) {
$migrations->createRepository();
}
$refreshDB = $this->askAboutRefreshingDatabase();
if ($refreshDB == 'yes') {
if ($this->askAboutExcludingUsersTable() == 'yes') {
$this->excludeTables[] = 'users';
$this->excludeTables[] = 'group_user';
}
$this->dropDatabaseTables();
$this->call('devise:migrate');
$this->call('migrate');
$this->call('devise:seed');
$this->call('db:seed');
}
}