5 lines
353 B
Plaintext
Raw Normal View History

2016-03-18 11:12:50 +01:00
// 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 %>')