2014_10_12_000000_create_users_table.php 757 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. use Illuminate\Database\Schema\Blueprint;
  3. use Illuminate\Database\Migrations\Migration;
  4. class CreateUsersTable extends Migration
  5. {
  6. /**
  7. * Run the migrations.
  8. *
  9. * @return void
  10. */
  11. public function up()
  12. {
  13. Schema::create('users', function (Blueprint $table) {
  14. $table->increments('id');
  15. $table->string('name');
  16. $table->string('email')->unique();
  17. $table->string('password', 60);
  18. $table->boolean('admin')->default(false);
  19. $table->rememberToken();
  20. $table->timestamps();
  21. });
  22. }
  23. /**
  24. * Reverse the migrations.
  25. *
  26. * @return void
  27. */
  28. public function down()
  29. {
  30. Schema::drop('users');
  31. }
  32. }