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

Dump HABTM tables in only one direction #101

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

GarthSnyder
Copy link

Currently, association tables used with has_and_belongs_to_many map to two different models, and since seed_dump doesn't treat these specially, they end up being dumped twice. This patch prunes the to-dump set of models so that no more than one HABTM model refers to each table.

@kofronpi kofronpi added this to the 4.0.0 milestone May 10, 2017
timdiggins added a commit to timdiggins/seed_dump that referenced this pull request May 22, 2018
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