| Total Complexity | 2 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class CreateUsersTable extends Migration |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Run the migrations. |
||
| 11 | * |
||
| 12 | * @return void |
||
| 13 | */ |
||
| 14 | public function up() |
||
| 15 | { |
||
| 16 | Schema::create('users', function (Blueprint $table) { |
||
| 17 | $table->increments('id'); |
||
| 18 | $table->string('name'); |
||
| 19 | |||
| 20 | $table->string('github_username')->unique(); |
||
| 21 | $table->string('github_id')->unique(); |
||
| 22 | $table->string('github_token'); |
||
| 23 | $table->string('github_avatar')->nullable(); |
||
| 24 | |||
| 25 | $table->rememberToken(); |
||
| 26 | $table->timestamps(); |
||
| 27 | }); |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Reverse the migrations. |
||
| 32 | * |
||
| 33 | * @return void |
||
| 34 | */ |
||
| 35 | public function down() |
||
| 36 | { |
||
| 37 | Schema::drop('users'); |
||
| 38 | } |
||
| 40 |