-
Notifications
You must be signed in to change notification settings - Fork 901
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
Has And Belongs To Many Support #466
Comments
No, I don't think it did either. But I think a Has And Belongs to Many association can be easily converted to a Has Many Through one. |
Good point, @Muzamil, though not quite as clean, you could use a join table and use |
Exactly, and if I am not wrong, the join table is already there if you are using Has And Belongs To Many. You only need to add a model class for it and change the association type. |
Yes, Sounds good but as of now we had like 4-5 habtm relationships and we were not looking to change habtm to has many through. So we took the route of
Thank you for your support. |
The thing I am addressing in Issue #530 is having a has many through relationship from table A to C through B, and then having a one to many relationship between table B and C. In this case, the intermediate through model will not be having foreign keys of both the tables as in a proper many-many relationship and, |
I'm going to go ahead and close this because we're really close to merging #771 which implements HABTM support. |
This is not a bug but a question.
I am able to restore has_many associations to a previous version but I am looking for a way to restore 'has and belongs to many' associations for an object.
Does paper trail support it? the only way I can think of as of now is to add column which stores the ids of habtm relationship. Is there an elegant way for this?
The text was updated successfully, but these errors were encountered: