Documents are available here.
It looks like the following options are supported:
:destroy - destroys all related objects.:delete_all - deletes all related objects directly from the database (therefore, callbacks will not be performed).:nullify - foreign keys are set to NULL. Callbacks are not made.:restrict_with_exception - throws an exception if there are related records.:restrict_with_error - Adds an error to the owner if there are related objects.
source share