-
Notifications
You must be signed in to change notification settings - Fork 617
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
Multi-level Imports #231
Comments
Multilevel import does work, however, it is only implemented for autosave associations (I believe there is an issue or PR to change that behavior) and you need to import with The tests have an example:
I think if you change your has_many :tiers association, and maybe the :searches_tiers to be autosave true and add the recursive option to the import, you'll get tiers imported. |
Thanks for your response @johnnaegle . You were right about the For Rails 4.2.0:
then
successfully resulted in Note also that you will need to use |
The README strongly suggests that we can import multi-level objects, e.g.:
where
search has_many :tiers through: :searches_tiers
I've tried the following:
search
gets importedtier
does notshould this work?
Also, pull request #104 , although mainly about returning ids in Postgres, has a subconversation about multi-level importing, which was implemented in this fork by @GoodMeasuresLLC, now stale. Can someone please clarify whether multi-level import is available or not?
The text was updated successfully, but these errors were encountered: