mirror of
https://github.com/strapi/strapi.git
synced 2025-08-13 19:27:34 +00:00
5 lines
256 B
Plaintext
5 lines
256 B
Plaintext
![]() |
|
||
|
// Make a "one-to-one" relationship between `<%= attribute %>` and the `<%= details.column %>`
|
||
|
// column from the `<%= details.model %>` table.
|
||
|
table.integer('<%= attribute %>').unsigned().unique().references('<%= details.model %>.<%= details.column %>')
|