From 809c14f3ed63d39e40de67dd70f5992944f7ae4b Mon Sep 17 00:00:00 2001 From: Kosuke Tanabe Date: Mon, 23 Sep 2024 15:05:14 +0900 Subject: [PATCH] fix creating index --- db/migrate/20090913173236_create_nii_types.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/migrate/20090913173236_create_nii_types.rb b/db/migrate/20090913173236_create_nii_types.rb index 1d5940363..0f83405ac 100644 --- a/db/migrate/20090913173236_create_nii_types.rb +++ b/db/migrate/20090913173236_create_nii_types.rb @@ -8,6 +8,6 @@ def change t.timestamps end - add_index :nii_types, :name, unique: true + add_index :nii_types, :name, unique: true, if_not_exists: true end end