We have to do an integration with Saleforce for a Rails project we are working on. I keep getting this error:
The :dependent option expects either :destroy or :delete (:nullify)
I posted to the Salesforce forums and didn’t get any response so I did some more investigation. Turns out there is a bug and a patch:
Lucky for me the latest version of Rails has a feature that unpacks all of your gems into your vendor directory. I unpacked activesalesforce, made the code changes by applying the patch (which just removes :dependent => :nullify) and viola.