2014_10_12_100000_create_password_resets_table.php 645 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. use Illuminate\Database\Schema\Blueprint;
  3. use Illuminate\Database\Migrations\Migration;
  4. class CreatePasswordResetsTable extends Migration
  5. {
  6. /**
  7. * Run the migrations.
  8. *
  9. * @return void
  10. */
  11. public function up()
  12. {
  13. Schema::create('password_resets', function (Blueprint $table) {
  14. $table->string('email')->index();
  15. $table->string('token')->index();
  16. $table->timestamp('created_at')->nullable();
  17. });
  18. }
  19. /**
  20. * Reverse the migrations.
  21. *
  22. * @return void
  23. */
  24. public function down()
  25. {
  26. Schema::drop('password_resets');
  27. }
  28. }