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
Post a Comment