Skip to content

Commit

Permalink
Update add_relationship_constraints.ejs
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima authored Oct 21, 2024
1 parent 83804c4 commit 736780d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ if (relationshipType === 'many-to-one' || (relationshipType === 'one-to-one' &&
<%_ } _%>
/>
<%_ } else if (relationship.shouldWriteJoinTable) { _%>
<addForeignKeyConstraint baseColumnNames="<%= entity.primaryKey.fields.map(field => entity.entityTableName + '_' + field.columnName).join(', ') %>"
baseTableName="<%= relationship.joinTable.name %>"
constraintName="<%= relationship.joinTable.constraintName %>"
Expand Down

0 comments on commit 736780d

Please sign in to comment.