I am working on touch in Rails but facing on issue here.
class User < ActiveRecord::Base
belongs_to :company, touch: true
end
But I want this should not update the updated_at of company model. How can I do it?
Or
Is there any way to restrict this in destroy. Because I don't want it on destroy.
Aucun commentaire:
Enregistrer un commentaire