kanevk / kanevk/dalek

Handle has_many :through associations

Open
#1 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Ruby
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Extend the deletion tree to find the right scope for has_many :through association.

## Example

### Model
```ruby
class User
has_many :commentators, through: :posts, source: :user
end
```
### Deletion tree

```ruby
module DeleteUser
include Dalek::Exterminate

deletion_tree 'User, {commentators: :delete}
end
```

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue names no files or tests; start by locating the deletion-tree implementation and its handling of has_many associations. Use the User/commentators example as the acceptance case and confirm that deletion resolves the correct scope for the through association.

Written by the indexing model from the issue text.

Assessment

Tech stack
rails, ruby
Domain
backend, database
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.