From 4493e408e38b07bdb4bc56c8a9c2266322685e78 Mon Sep 17 00:00:00 2001 From: EETagent Date: Mon, 24 Oct 2022 12:56:29 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20unique=20pro=20evide=C4=8Dn=C3=AD=20?= =?UTF-8?q?=C4=8D=C3=ADslo=20p=C5=99ihl=C3=A1=C5=A1ky?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- migration/src/m20221024_124701_create_parent.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/migration/src/m20221024_124701_create_parent.rs b/migration/src/m20221024_124701_create_parent.rs index 721e1c1..7573a9f 100644 --- a/migration/src/m20221024_124701_create_parent.rs +++ b/migration/src/m20221024_124701_create_parent.rs @@ -15,7 +15,8 @@ impl MigrationTrait for Migration { ColumnDef::new(Parent::Application) .integer() .not_null() - .primary_key(), + .primary_key() + .unique_key(), ) .col(ColumnDef::new(Parent::Name).string()) .col(ColumnDef::new(Parent::Surname).string())