1
0
Fork 0
forked from OpenNeo/impress
impress/app/models
Matchu b8a8cb9b20 Stop orphaning hangers when deleting lists
Idk if this used to be different or what, but it looks like the current
behavior is: if you delete a closet list, it'll leave the hangers
present, but Classic DTI would not show them anywhere; but Impress 2020
(until recently) would crash about it.

Now, we use `dependent: :destroy` to delete the hangers when you delete
the list (which I think makes sense, and is different than what I
decided in the past but that's ok, and is what the current behavior
*looks* like to people!), and we add a migration that deletes orphaned
hangers.

The migration also outputs the deleted hangers as JSON, for us to hold
onto in case we made a mistake! I'm also backing up the database in
advance of running this migration, just in case we gotta roll back HARD!
2023-10-24 15:35:21 -07:00
..
item
application_record.rb
auth_record.rb
auth_user.rb
campaign.rb
closet_hanger.rb
closet_list.rb Stop orphaning hangers when deleting lists 2023-10-24 15:35:21 -07:00
closet_visibility.rb
color.rb
contribution.rb
donation.rb
donation_feature.rb
fragment_expiration.rb
fragment_localization.rb
image.rb Delete Camo references & Addressable gem 2023-10-23 19:05:05 -07:00
item.rb
item_outfit_relationship.rb
neopets_connection.rb
neopets_page.rb
neopets_user.rb
outfit.rb
parent_swf_asset_relationship.rb
pet.rb
pet_attribute.rb
pet_state.rb
pet_type.rb
pretty_param.rb
roulette.rb
species.rb
static_resource.rb
swf_asset.rb Skip item translations when modeling 2023-10-23 19:05:10 -07:00
user.rb
zone.rb