Skip to content

Conversation

jasonmccreary
Copy link
Collaborator

@jasonmccreary jasonmccreary commented Jan 22, 2021

This PR fixes an issue reported where uuid columns generated a foreign key relationships. In the process of solving this, I also added a feature where uuid columns with a conventional name automatically creates the relationship.

For example:

models:
  Subscription:
    product_id: uuid

Creates a belongsTo relationship for Product.


Closes #417

@jasonmccreary
Copy link
Collaborator Author

@tanthammar, can you pull this branch (dev-fix-417) and see if it works as expected.

@tanthammar
Copy link

Thank you!
Yes it works :)

@jasonmccreary jasonmccreary merged commit 6cca54d into master Jan 25, 2021
@jasonmccreary jasonmccreary deleted the fix-417 branch February 19, 2022 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UUID column generates a reference when use_constraints config option is enabled
2 participants