Adding A Unique Constraint Using A Unique Index #2155
jvanderen1
started this conversation in
General
Replies: 1 comment 3 replies
-
This isn't currently supported, but is fairly simple to add. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have seen a lot of discussion online about the best way to add a uniqueness to a set of columns. However, there are a few places which suggest adding a unique index first, followed by a unique constraint using the index (example):
Step 1: Create Unique Index
Step 2: Create Unique Constraint Based on Unique Index
Do Sequel migration's support this syntax? I know a unique index can be added via
add_index
, but can a constraint be added using an index?Beta Was this translation helpful? Give feedback.
All reactions