Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Allow unique index on belongs to #536

Conversation

shortly-portly
Copy link
Contributor

Allow for:
add_belongs_to author : User, unique: true

Updated tests.

Copy link
Member

@matthewmcgarvey matthewmcgarvey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 👍

@matthewmcgarvey matthewmcgarvey merged commit 6560b98 into luckyframework:master Nov 16, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add ability to add a unique index when using add_belongs_to in a migration
2 participants