Added dependent: :destroy to model.rb files