/**
  * Run the migrations.
  *
  * @return void
  */
 public function up()
 {
     Schema::table('files', function (Blueprint $table) {
         $table->boolean('has_thumbnail')->default(false);
     });
     FileStorage::chunk(100, function ($files) {
         foreach ($files as $file) {
             if ($file->hasThumb()) {
                 $file->has_thumbnail = true;
                 $file->save();
             }
         }
     });
 }