increments('id'); $table->integer('user_id'); $table->timestamp('ejaculated_date'); $table->string('note', 500)->default(''); $table->double('geo_latitude')->nullable(); $table->double('geo_longitude')->nullable(); $table->boolean('is_private')->default(false); $table->timestamps(); $table->index('user_id'); $table->unique(['user_id', 'ejaculated_date']); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('ejaculations'); } }