schema->hasTable('verifications')) { $this->schema->create('verifications', function (Blueprint $table) { $table->increments('id'); $table->integer('user_id')->unsigned(); $table->string('hash'); $table->boolean('completed')->default(0); $table->timestamp('expires_at')->nullable(); $table->timestamp('completed_at')->nullable(); $table->timestamps(); $table->engine = 'InnoDB'; $table->collation = 'utf8_unicode_ci'; $table->charset = 'utf8'; //$table->foreign('user_id')->references('id')->on('users'); $table->index('user_id'); $table->index('hash'); }); } } /** * {@inheritDoc} */ public function down() { $this->schema->drop('verifications'); } }