Skip to content

Commit

Permalink
fix creating index
Browse files Browse the repository at this point in the history
  • Loading branch information
nabeta committed Sep 23, 2024
1 parent f3ea1c1 commit 809c14f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/migrate/20090913173236_create_nii_types.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 809c14f

Please sign in to comment.