Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Add foreign key constraints, fix tests #45

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

tbarmann
Copy link
Contributor

@tbarmann tbarmann commented Nov 29, 2022

This adds foreign key constraints to several tables: orders, order_items, order_item_options, and menus. This will ensure that changes/deletion to parent records will properly change/delete children records.

This also fixes a number of tests, which were automatically generated, so they use fixtures that generate real records instead of using hard-coded random ids for records.

Another change adds the faker library to the project because some of the tests generate multiple users and users must have unique email addresses.

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.

1 participant