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

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

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