<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateUnsubscribesTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('unsubscribes', function (Blueprint $table) { $table->increments('id'); $table->unsignedInteger('campaign_id')->nullable(); $table->unsignedInteger('queue_id')->nullable(); $table->string('email'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('unsubscribes'); } }