increments('id'); $table->string('key'); $table->text('extra'); $table->integer('book_id')->indexed(); $table->integer('user_id'); $table->integer('entity_id'); $table->string('entity_type'); $table->nullableTimestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::drop('activities'); } };