1
0
Fork 0
forked from OpenNeo/impress
impress/db/migrate
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
..
20101109021049_create_outfits.rb
20101109021147_create_item_outfit_relationships.rb
20101110213044_add_name_and_starred_to_outfits.rb
20101125153424_treat_sold_in_mall_as_a_boolean.rb
20101125154435_allow_null_for_some_objects_fields.rb Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
20101125160843_add_swf_assets_type_and_id_index.rb Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
20110126180835_users_devise.rb
20110210222230_guest_outfits.rb Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
20110514145602_add_has_image_to_swf_assets.rb Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
20110515134542_add_image_requested_to_swf_assets.rb
20110626202605_add_image_mode_tester_to_users.rb Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
20110712232259_create_closet_hangers.rb
20110713162012_set_closet_hangers_quantity_default_to_zero.rb Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
20110720183722_add_neopets_username_to_users.rb
20110722180616_add_owned_to_closet_hangers.rb Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
20110726231143_create_closet_lists.rb
20110730174148_add_closet_hangers_visibility_to_users.rb
20110731021808_add_visibility_to_closet_lists.rb Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
20110804134432_add_timestamps_to_items.rb Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
20110807212936_add_conversion_timestamps_to_swf_assets.rb
20120112204234_rename_swf_assets_id_to_remote_id.rb
20120308205324_add_image_to_outfits.rb Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
20120321214802_index_associations.rb
20120321222001_index_closet_hanger_query.rb
20120321231507_index_closet_hanger_query2.rb Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
20120521164652_add_female_and_mood_and_unconverted_and_labeled_to_pet_states.rb
20120716193946_add_image_layers_hash_to_outfit.rb Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
20120725232903_add_image_enqueued_to_outfits.rb Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
20121006010446_add_explicitly_body_specific_to_objects.rb Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
20130111213346_translate_items.rb
20130121193957_create_species.rb
20130121205607_create_colors.rb
20130121221226_create_zones.rb Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
20130128065543_remove_translated_fields_from_items.rb
20130427151327_add_glitched_to_pet_states.rb
20131016203607_add_image_manual_to_swf_assets.rb
20140117171729_create_neopets_connections.rb
20140119040646_add_contact_neopets_connection_id_to_users.rb
20140125202515_add_prank_to_colors.rb
20140331034031_add_artist_neopets_username_to_pet_state.rb Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
20140403034558_create_wardrobe_tips.rb
20140910014231_create_donations.rb Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
20140910030549_create_donation_features.rb Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
20140910181819_add_email_to_donations.rb Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
20140910204019_create_campaigns.rb
20140910204043_add_campaign_id_to_donation.rb
20150225194522_add_advertised_to_campaign.rb Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
20150728192329_add_description_to_campaigns.rb
20150728195029_add_name_to_campaigns.rb Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
20150802202909_add_theme_id_to_campaigns.rb
20150905181350_add_basic_image_hash_to_pet_types.rb Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
20150923052017_add_thanks_to_campaign.rb Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
20150927033046_create_news_posts.rb Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
20170105205222_add_purpose_to_campaigns.rb
20180509210338_add_manual_special_color_id_to_items.rb Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
20230729181111_drop_news_posts.rb Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
20230802195548_drop_wardrobe_tips.rb
20231024221826_delete_orphaned_closet_hangers.rb Stop orphaning hangers when deleting lists 2023-10-24 15:35:21 -07:00