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.

…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.

1 participant