From afcd9d8572d5cf0659298e480a62603bb22ac5ef Mon Sep 17 00:00:00 2001 From: alemi Date: Fri, 22 Mar 2024 06:25:30 +0100 Subject: [PATCH] fix: unique --- src/migrations/m20240322_000003_add_indexes.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/migrations/m20240322_000003_add_indexes.rs b/src/migrations/m20240322_000003_add_indexes.rs index 52a63107..825376aa 100644 --- a/src/migrations/m20240322_000003_add_indexes.rs +++ b/src/migrations/m20240322_000003_add_indexes.rs @@ -97,6 +97,7 @@ impl MigrationTrait for Migration { .table(Likes::Table) .col(Likes::Actor) .col(Likes::Likes) + .unique() .to_owned() ).await?;