2016-03-29 12:02:06 +02:00

5 lines
256 B
Plaintext
Executable File

// 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 %>')