5 lines
256 B
Plaintext
Raw Normal View History

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