We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
We're working in a context where we are creating associated records in our factories, and we set the parent record's ID as we build them.
e.g.
Factory.build(:wheel, car: Factory.build(:car, car_id: "some-car-id") )
We have noticed that when we use Factory.insert, wheel.car_id is set. We would like that same behaviour from build.
Factory.insert
wheel.car_id
build
We've got a patch for this locally in our codebase, would it be useful to submit as a PR?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
We're working in a context where we are creating associated records in our factories, and we set the parent record's ID as we build them.
e.g.
We have noticed that when we use
Factory.insert
,wheel.car_id
is set. We would like that same behaviour frombuild
.We've got a patch for this locally in our codebase, would it be useful to submit as a PR?
The text was updated successfully, but these errors were encountered: