increments('id'); $table->integer('post_id')->unsigned()->nullable(); $table->foreign('post_id')->references('id')->on('posts')->onDelete('SET NULL'); $table->string('platform', 100); $table->string('state', 255); $table->dateTime('date_to_publish')->nullable(); $table->dateTime('published_at')->nullable(); $table->timestamps(); $table->softDeletes(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('publications'); } }