Published
- 1 min read
rails delete child on parent delete
The solution for this is noted below
rails delete child on parent delete
Solution
class Widgets < ActiveRecord::Base
has_many :whatevers, :dependent => :destroy
end
Try other methods by searching on the site. That is if this doesn’t work