Skip to content

Add foreign key constraints, fix tests - #45

Open
tbarmann wants to merge 4 commits into
mainfrom
tb/add-references
Open

Add foreign key constraints, fix tests#45
tbarmann wants to merge 4 commits into
mainfrom
tb/add-references

Conversation

@tbarmann

@tbarmann tbarmann commented Nov 29, 2022

Copy link
Copy Markdown
Contributor

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