mirror of
https://github.com/strapi/strapi.git
synced 2025-08-11 02:07:51 +00:00
5 lines
353 B
Plaintext
Executable File
5 lines
353 B
Plaintext
Executable File
|
|
// Make a <% if (nature === 'oneWay') { %>"one-way"<% } else if (nature === 'oneToOne') { %>"one-to-one" <% } else { %>"one-to-many"<% } %> relationship between `<%= attribute %>` and the `<%= details.column %>`
|
|
// column from the `<%= details.model %>` table.
|
|
table.integer('<%= attribute %>').references('<%= details.model %>.<%= details.column %>')
|