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?;