How can I create a composite primary key and a unique index on a table #943
-
I cannot find any way to create a composite primary key and a unique index on a table, for composite primary keys I found this issue ( #820 ) which isn't resolved yet but I couldn't find anything for indexes can someone tell me whats the best approach for now for implementing a composite primary key and a unique index? |
Beta Was this translation helpful? Give feedback.
Answered by
sinisaos
Mar 10, 2024
Replies: 1 comment
-
@AmazingAkai For now, you can do this using empty migration and editing the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
AmazingAkai
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@AmazingAkai For now, you can do this using empty migration and editing the
run()
method with raw SQL as described in this link.