The only way to destroy the has_one and belongs_to association by setting FK to nil on the assign_to object?
Since I remember, as soon as you set the drop in the cascade, you just need to delete the object and remove all the dependencies.
Hope this helps, Greetings
Does it work @obj1.obj2 = nil?
@obj1.obj2 = nil
But this does not delete the belongs_to entry. If you want to do this, you need to do@obj1.obj2.delete
@obj1.obj2.delete
Source: https://habr.com/ru/post/1789099/More articles:Calculation / change of height of the substitution line in UILabel - iosSQL Server 2008 Performance Tuning (T-SQL) Multiple LEFT JOIN table vs. view - sqlProblem with user operator Nemerle - macrosКак использовать OpenGL в Haskell с несколькими окнами? - user-interfaceIterative forecasting of din models - dynamicRelease the ViewController correctly when adding a subview without navigationController - ioshttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1789101/only-include-file-once-in-git-repository&usg=ALkJrhjpHlVstIEGBj6vgBywCdFuFJyxMQGET HTTP Method Speed in C ++ - c ++How to run multiple sql queries through a single call in the Mysql2 Gem in IRB? - ruby | fooobar.comURL Hash w/Javascript - javascriptAll Articles