Don't forget to add ":dependent => :destroy" for join models

Updated . Posted . Visible to the public.

you should always

has_many :join_models, :dependent => :destroy
Martin Straub
Last edit
License
Source code in this card is licensed under the MIT License.
Posted by Martin Straub to makandra dev (2011-06-10 14:23)