neoid-gem / neoid

Extend Ruby on Rails ActiveRecord with Neo4j nodes. Keep RDBMS and utilize the power of Neo4j queries.
MIT License
171 stars 33 forks source link

destroy callback with neoidable auto_index: false #21

Open pboling opened 11 years ago

pboling commented 11 years ago

It seems that Neoid is managing my neo4j records well when I use it without auto_index: false, including the Neo4j equivalent of INSERT, UPDATE, and DELETE.

For the one model where I have auto_index: false, it doesn't automatically INSERT, which is as I would expect.

Does this mean that it also does not automatically UPDATE and DELETE?

It appears that this is the case, thus I am left with a quandry. When the model with auto_index: false is deleted how do I also delete the record from Neo4j?