3 use Illuminate\Database\Migrations\Migration;
4 use Illuminate\Database\Schema\Blueprint;
5 use Illuminate\Support\Facades\Schema;
7 class CreateDeletionsTable extends Migration
16 Schema::create('deletions', function (Blueprint $table) {
17 $table->increments('id');
18 $table->integer('deleted_by');
19 $table->string('deletable_type', 100);
20 $table->integer('deletable_id');
23 $table->index('deleted_by');
24 $table->index('deletable_type');
25 $table->index('deletable_id');
30 * Reverse the migrations.
34 public function down()
36 Schema::dropIfExists('deletions');