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 line items to purchases in seed #4205

Merged
merged 1 commit into from
Mar 22, 2024

Conversation

nikolaz90
Copy link
Contributor

@nikolaz90 nikolaz90 commented Mar 19, 2024

Resolves #4173

Description

Adds line items and randomised number for quantities on purchases in the seeds.
This prepares more realistic purchases on using the rails db:seed, or reset command.
image

Tradeoffs : only one organisation (Pawnee Diaper Bank) has any purchases in seed.

How Has This Been Tested?

Ran specs and the bin/setup command and checked manually that all purchases had line items, and random quantities.
It didn't cross my mind to add specs specifically for seeds, happy to add some though ?

@dorner
Copy link
Collaborator

dorner commented Mar 22, 2024

Looks good! Thank you!

@dorner dorner merged commit cc40077 into rubyforgood:main Mar 22, 2024
19 checks passed
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.

Add purchased items to the seed
2 participants