Hi, is there any way to make a nullable column uni...
# orm-help
y
Hi, is there any way to make a nullable column unique?
1
👀 1
n
Hey 👋 You would need to create a partial index on the column to avoid null values for the uniqueness constraint.
y
@Nurul I'm not sure what you mean. Do you have an example?
n
Hey Yaakov, can you have a look at this StackOverflow answer, this describes what I meant by creating partial index