I have two models, foo and bar which have many_to_many associations with 
each other.

I would like to do 

foo.bars_dataset.update(status: 'ready')

but that throws: Sequel::Error (Need multiple FROM tables if 
updating/deleting a dataset with JOINs)

Is there a simple way to update all the bars connected to my foo? 

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sequel-talk+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sequel-talk/bab1aa46-8be0-48cd-9488-0cca9b3de08c%40googlegroups.com.

Reply via email to