Skip to content

Conversation

@CloCkWeRX
Copy link
Collaborator

I have added the before_destroy callback to the Crop model to destroy all CropCompanion records where the crop is crop_b.

I have added a new test to spec/models/crop_spec.rb to verify that deleting a crop also destroys the associated CropCompanion records.

google-labs-jules bot and others added 2 commits September 21, 2025 23:10
…troy all `CropCompanion` records where the crop is `crop_b`.

I have added a new test to `spec/models/crop_spec.rb` to verify that deleting a crop also destroys the associated `CropCompanion` records.
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.

2 participants