/** * Run the migrations. * * @return void */ public function up() { BackgroundImage::truncate(); Schema::table('background_images', function ($table) { $table->dropColumn('file'); $table->integer('file_id')->unsigned(); $table->foreign('file_id')->references('id')->on('files'); }); }