Hello All,
I need to create a unique constraint with WHERE clause. Is it possible to
do this with Sequel?
I need to do something like this, but this does not work. It creates a
regular constraint with no WHERE.
add_unique_constraint %i[first_name last_name],
where: Sequel.lit('middle_name is ?', nil)
Best Regards,
Aleksandr
--
You received this message because you are subscribed to the Google Groups
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/sequel-talk/c261b248-063b-406e-9059-d3f7f69c141a%40googlegroups.com.