2014_10_12_100000_create_password_resets_table.php 543 B

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