1
0
Fork 0

Add unique index to likes migration

This commit is contained in:
Daniel Supernault 2018-04-29 10:29:01 -06:00
parent d641f2b453
commit 594576185b
1 changed files with 1 additions and 0 deletions

View File

@ -19,6 +19,7 @@ class CreateLikesTable extends Migration
$table->bigInteger('status_id')->unsigned();
// Flag to remove spammy profile_ids
$table->boolean('flagged')->default(false);
$table->unique(['profile_id', 'status_id']);
$table->timestamps();
});
}