ruby on rails 4 - dependent destroy not working with mongoid -


the plans won't deleted after user deleted.

am missing ?

it supposed remove plans belongs deleted user.

class user   include mongoid::enum   include mongoid::document    has_many :plans, dependent: :destroy  class plan   include mongoid::document   belongs_to :user 


Comments

Popular posts from this blog

json - Zend error Connection -

javascript - Trigger mouseenter when an animated element touches mouse -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -