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

HER-65: FIX_SEED_DATA_FOR_ADDRESS_USER_AND_ORDER_MODELS #41

Merged

Conversation

olesiamironenko
Copy link
Collaborator

@olesiamironenko olesiamironenko commented Jan 5, 2025

Issue HER-65: Fix seed data for address, user, and order models

https://raquelanaroman.atlassian.net/browse/HER-65

Description
During the last database reset and seeding it turned out that seeding is not working.
db:seed command gave an error of “Busy extension” on the line where User seeding starts.

Task
In seeds.rb ensure user, address, and order seeding are done using user, address, and order factories

Acceptance Criteria
Ensure seeding is working

Changes

  1. Added commands to seeds.db to clear data from database tables
  2. Added require 'factory_bot_rails' to seeds.rb to use existing factories for seeding users, addresses, and orders.

Review Checklist

  • I have documented my code with code comments.
Screenshot 2025-01-04 at 8 40 06 PM

Copy link
Collaborator

@trca831 trca831 left a comment

Choose a reason for hiding this comment

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

LGTM!

@olesiamironenko olesiamironenko merged commit e996f13 into main Jan 6, 2025
3 checks passed
@olesiamironenko olesiamironenko deleted the HER-65-fix-seed-data-for-address-user-and-order-models branch January 6, 2025 04:55
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.

3 participants