1
0
Fork 0
forked from OpenNeo/impress
impress/app/models/item_outfit_relationship.rb
Emi Matchu 118ec6aa1a Oops, update outfit's updated_at when adding/removing items
This bug caused outfit thumbnails to get out of date, because the
outfit's `updated_at` field is used as a cache-busting part of the URL.
2024-02-08 10:32:53 -08:00

6 lines
139 B
Ruby

class ItemOutfitRelationship < ApplicationRecord
belongs_to :item
belongs_to :outfit, touch: true
validates_presence_of :item
end