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 Oops, add species search filter back 2023-10-23 19:05:07 -07:00
application_record.rb Upgrade to Rails 5.2.8.1 2023-10-23 19:05:05 -07:00
auth_record.rb Add AuthUser model, connecting to openneo_id db 2023-10-23 19:05:07 -07:00
auth_user.rb Clarify the error behavior on AuthUser syncing 2023-10-23 19:05:08 -07:00
campaign.rb Upgrade to Rails 5.2.8.1 2023-10-23 19:05:05 -07:00
closet_hanger.rb Fix moving closet hanger to null-list 2023-10-23 19:05:06 -07:00
closet_list.rb Stop orphaning hangers when deleting lists 2023-10-24 15:35:21 -07:00
closet_visibility.rb Cache trade info on items#show, finally! I think it's the performance culprit. 2013-12-27 14:49:46 -05:00
color.rb Remove sanitize_sql_like monkey-patch 2023-10-23 19:05:07 -07:00
contribution.rb Upgrade to Rails 5.2.8.1 2023-10-23 19:05:05 -07:00
donation.rb Mark some more relationships as optional 2023-10-23 19:05:07 -07:00
donation_feature.rb Mark some more relationships as optional 2023-10-23 19:05:07 -07:00
fragment_expiration.rb only send cache deletions for usable locales 2013-12-08 23:44:25 -06:00
fragment_localization.rb i18n for outfits#new (and layouts#application), including caching 2013-01-24 18:23:18 -06:00
image.rb Delete Camo references & Addressable gem 2023-10-23 19:05:05 -07:00
item.rb Oops, fix typo include -> includes 2023-10-23 19:05:09 -07:00
item_outfit_relationship.rb Upgrade to Rails 5.2.8.1 2023-10-23 19:05:05 -07:00
neopets_connection.rb Upgrade to Rails 5.2.8.1 2023-10-23 19:05:05 -07:00
neopets_page.rb import from gallery 2015-07-28 15:05:40 -04:00
neopets_user.rb Fix old find_or_initialize_by methods 2023-10-23 19:05:09 -07:00
outfit.rb Oops, fix anonymous outfits 2023-10-23 19:05:07 -07:00
parent_swf_asset_relationship.rb Upgrade to Rails 5.2.8.1 2023-10-23 19:05:05 -07:00
pet.rb Skip item translations when modeling 2023-10-23 19:05:10 -07:00
pet_attribute.rb capitalize each word of a species/color name (for Swamp Gas) 2011-07-12 18:22:16 -04:00
pet_state.rb Fix more modeling bugs 2023-10-23 19:05:09 -07:00
pet_type.rb Upgrade to Rails 5.2.8.1 2023-10-23 19:05:05 -07:00
pretty_param.rb parameterize user params like items, plus a cleaner parameterization scheme 2011-07-26 18:49:52 -04:00
roulette.rb species check was in the wrong place. fixed 2011-01-27 17:50:08 -05:00
species.rb Remove sanitize_sql_like monkey-patch 2023-10-23 19:05:07 -07:00
static_resource.rb attempt to fix new species_support_ids format. sigh. 2013-01-23 00:25:09 -06:00
swf_asset.rb Skip item translations when modeling 2023-10-23 19:05:10 -07:00
user.rb Clarify the error behavior on AuthUser syncing 2023-10-23 19:05:08 -07:00
zone.rb Fix bug with Arel ordering 2023-10-23 19:05:05 -07:00