Rails dependent which options are possible?
问题 I get the following error in Rails 4 dependent option must be one of destroy delete apparently https://github.com/rails/rails/issues/3458 other options were supported before. But what is possible nowadays? I could not find any other documentation thank you for your help 回答1: Docs are available here Looks like the following options are supported: :destroy - causes all the associated objects to also be destroyed. :delete_all - causes all the associated objects to be deleted directly from the