Skip to content

Commit

Permalink
Update 2021_11_09_083843_create_companies_table.php
Browse files Browse the repository at this point in the history
  • Loading branch information
OhmygoodR authored Nov 6, 2023
1 parent 493ae2c commit b5839b0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function up()
// TASK: edit this migration so there couldn't be two companies with the same name
Schema::create('companies', function (Blueprint $table) {
$table->id();
$table->string('name')->unique;
$table->string('name')->unique();
$table->timestamps();
});
}
Expand Down

0 comments on commit b5839b0

Please sign in to comment.