diff --git a/database/migrations/2020_01_01_155000_create_results_table.php b/database/migrations/2020_01_01_155000_create_results_table.php index 986d027..a1e65cd 100644 --- a/database/migrations/2020_01_01_155000_create_results_table.php +++ b/database/migrations/2020_01_01_155000_create_results_table.php @@ -21,7 +21,7 @@ public function up() // Don't need timestamps since can use created_at timestamp of the ranking class - $table->unique(['ranking_id', 'type', 'position']); + $table->unique(['ranking_id', 'type', 'position'], 'result_unique'); }); } }