1
0
Fork 0
forked from OpenNeo/impress
impress/db/migrate
Matchu 4e11ee4da7 Add paint brush images to Item Getting Guide
In the previous change, we started grouping PB items by color. But I
wanted to better express that the grouping itself *is* an item, and the
items below it are secondary!

The main change we make here is to leverage DTI's existing design
language that "thumbnail image means item", and record thumbnail URLs
as well as paint brush names now, too!

We're still not leveraging the full Item system here, just fields on
Color. Keeping it simple for now!

Here's the script I ran to add the paint brush images to all the
existing colors!

```rb
Color.find_by_name("Baby").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/babypaintbrush.gif")
Color.find_by_name("Biscuit").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/paintbrush_biscuit.gif")
Color.find_by_name("Blue").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/bluepntbrsh.gif")
Color.find_by_name("Brown").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/brownpntbrush.gif")
Color.find_by_name("Camouflage").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/paintbrush_camo.gif")
Color.find_by_name("Candy").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/paintbrush_candy.gif")
Color.find_by_name("Checkered").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/checkeredpntbrush.gif")
Color.find_by_name("Christmas").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/xmaspaintbrush.gif")
Color.find_by_name("Cloud").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/cloudpntbrush.gif")
Color.find_by_name("Darigan").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/pb_darigan.gif")
Color.find_by_name("Dimensional").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/paintbrush_dimensional.gif")
Color.find_by_name("Disco").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/discopntbrush.gif")
Color.find_by_name("Electric").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/electricbluepntbrush.gif")
Color.find_by_name("Eventide").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/eventidepaintbrush.gif")
Color.find_by_name("Faerie").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/faeriepntbrush.gif")
Color.find_by_name("Fire").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/firepntbrush.gif")
Color.find_by_name("Elderlyboy").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/pb_elderly.gif")
Color.find_by_name("Elderlygirl").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/pb_elderly.gif")
Color.find_by_name("Ghost").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/ghostpntbrush.gif")
Color.find_by_name("Glowing").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/glowingpntbrsh.gif")
Color.find_by_name("Gold").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/gold_pntbrush.gif")
Color.find_by_name("Green").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/greenpntbrsh.gif")
Color.find_by_name("Grey").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/greypntbrush.gif")
Color.find_by_name("Halloween").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/halloweenpntbrsh.gif")
Color.find_by_name("Invisible").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/invisiblepntbrsh.gif")
Color.find_by_name("Desert").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/desertpaintbrush.gif")
Color.find_by_name("Maractite").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/maractitepaintbrush.gif")
Color.find_by_name("Maraquan").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/maraquanpntbrush.gif")
Color.find_by_name("Marble").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/paintbrush_marble.gif")
Color.find_by_name("Island").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/islandpntbrush.gif")
Color.find_by_name("Oil Paint").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/oilpaintingpntbrsh.gif")
Color.find_by_name("Orange").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/orange_paint_brush.gif")
Color.find_by_name("Origami").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/paintbrush_origami.gif")
Color.find_by_name("Pastel").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/paintbrush_pastel.gif")
Color.find_by_name("Pink").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/pink_paint_brush.gif")
Color.find_by_name("Pirate").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/piratepntbrush.gif")
Color.find_by_name("Plushie").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/plushiepaintbrush.gif")
Color.find_by_name("Polka Dot").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/paintbrush_polkadot.gif")
Color.find_by_name("Purple").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/purplepntbrsh.gif")
Color.find_by_name("Rainbow").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/rainbowpntbrsh.gif")
Color.find_by_name("Red").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/redpntbrsh.gif")
Color.find_by_name("Relic").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/relic_pntbrush.gif")
Color.find_by_name("Royalboy").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/paintbrush_royal.gif")
Color.find_by_name("Royalgirl").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/paintbrush_royal.gif")
Color.find_by_name("Sketch").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/sketchpntbrush.gif")
Color.find_by_name("Shadow").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/shadowpntbrsh.gif")
Color.find_by_name("Silver").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/silverpntbrsh.gif")
Color.find_by_name("Skunk").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/skunkpntbrush.gif")
Color.find_by_name("Snow").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/paintbrush_snowman.gif")
Color.find_by_name("Speckled").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/greenwhitedotspntbrush.gif")
Color.find_by_name("Split").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/halfandhalfpntbrsh.gif")
Color.find_by_name("Spotted").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/spottedpntbrush.gif")
Color.find_by_name("Starry").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/starspntbrush.gif")
Color.find_by_name("Stealthy").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/pb_stealthy.gif")
Color.find_by_name("Steampunk").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/paintbrush_steampunk.gif")
Color.find_by_name("Strawberry").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/strawberrypntbrush.gif")
Color.find_by_name("Striped").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/stripedpntbrsh.gif")
Color.find_by_name("Swamp Gas").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/newpbsg2011color.gif")
Color.find_by_name("Toy").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/paintbrush_toy.gif")
Color.find_by_name("Transparent").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/transparentpaintbrush.gif")
Color.find_by_name("Tyrannian").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/tyrannianpntbrush.gif")
Color.find_by_name("Usuki Boy").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/usukipaintbrush.gif")
Color.find_by_name("Usuki Girl").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/usukipaintbrush.gif")
Color.find_by_name("Valentine").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/paintbrush_valentine.gif")
Color.find_by_name("Water").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/paintbrush_water.gif")
Color.find_by_name("White").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/whitepntbrsh.gif")
Color.find_by_name("Woodland").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/paintbrush_woodland.gif")
Color.find_by_name("Wraith").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/paintbrush_wraith.gif")
Color.find_by_name("Yellow").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/yellowpntbrsh.gif")
Color.find_by_name("Zombie").update!(pb_item_thumbnail_url: "https://images.neopets.com/items/paintbrush_zombie.gif")
```
2024-05-22 16:59:36 -07:00
..
20101109021049_create_outfits.rb Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
20101109021147_create_item_outfit_relationships.rb Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
20101110213044_add_name_and_starred_to_outfits.rb Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
20101125153424_treat_sold_in_mall_as_a_boolean.rb Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
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 Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
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 Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
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 Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
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 Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
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 Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
20110730174148_add_closet_hangers_visibility_to_users.rb Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
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 Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
20120112204234_rename_swf_assets_id_to_remote_id.rb Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
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 Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
20120321222001_index_closet_hanger_query.rb Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
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 Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
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 Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
20130121193957_create_species.rb Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
20130121205607_create_colors.rb Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
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 Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
20130427151327_add_glitched_to_pet_states.rb Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
20131016203607_add_image_manual_to_swf_assets.rb Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
20140117171729_create_neopets_connections.rb Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
20140119040646_add_contact_neopets_connection_id_to_users.rb Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
20140125202515_add_prank_to_colors.rb Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
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 Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
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 Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
20140910204043_add_campaign_id_to_donation.rb Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
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 Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
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 Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
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 Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
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 Oops, should've used migration version 4.2 2023-10-23 19:05:08 -07:00
20231024221826_delete_orphaned_closet_hangers.rb Stop orphaning hangers when deleting lists 2023-10-24 15:35:21 -07:00
20231110043543_add_manifest_url_to_swf_assets.rb Move manifest backfill to swf_assets:manifests task 2023-11-10 16:52:50 -08:00
20231111232015_remove_image_mode_tester_from_users.rb Remove old Image Mode stuff 2023-11-11 15:21:49 -08:00
20231111234255_remove_mall_spider_fields_from_item.rb Remove unused NC Mall spider code & fields 2023-11-11 15:45:38 -08:00
20240119061745_add_last_trade_activity_at_to_users.rb Save last trade activity time onto User 2024-01-19 00:00:46 -08:00
20240123125509_add_name_to_species_and_color.rb Improve species/color name migration performance & correctness 2024-01-23 05:30:42 -08:00
20240123133215_add_label_and_plain_label_to_zones.rb Start migrating off globalize gem for zones 2024-01-23 05:43:00 -08:00
20240124102340_create_alt_styles.rb Add alt style support to modeling 2024-01-24 03:25:23 -08:00
20240129114639_add_support_staff_to_users.rb Add support_staff flag to user record; they can use Support tools 2024-01-29 04:21:19 -08:00
20240201134440_add_alt_style_id_to_outfits.rb Add Alt Style support to outfit saving 2024-02-01 05:55:19 -08:00
20240203161355_drop_translations_for_colors_and_species_and_zones.rb Migration to drop {color,species,zone}_translations 2024-02-03 08:20:18 -08:00
20240220230420_add_translated_fields_directly_to_items.rb Add translated item fields directly to the Item model 2024-02-20 15:25:03 -08:00
20240221004332_fix_default_value_for_modeling_logs_created_at.rb Fix default value for Impress 2020's modeling_logs.created_at 2024-02-20 16:46:19 -08:00
20240221005949_drop_item_translations.rb Drop item_translations table 2024-02-20 17:01:54 -08:00
20240225231346_add_manifest_loaded_at_and_manifest_status_code_to_swf_assets.rb Track when manifest was last loaded, and what status it returned 2024-02-25 15:35:04 -08:00
20240227231815_add_series_name_to_alt_styles.rb Add series_name database field to alt styles 2024-02-27 15:28:05 -08:00
20240227233743_change_default_for_alt_styles_series_name.rb Update series_name for alt styles to be null, with a fallback string 2024-02-27 15:48:28 -08:00
20240229015410_convert_all_tables_to_utf8mb4.rb Improve Unicode support, emojis don't crash us anymore lol! 2024-02-28 18:54:27 -08:00
20240323234243_increase_limit_for_item_outfit_relationships_id.rb Increase ID column limit for item_outfit_relationships 2024-03-24 11:09:40 +11:00
20240401124200_increase_username_length.rb Increase maximum username length to 30 2024-04-01 05:53:38 -07:00
20240421033509_add_shadowbanned_to_users.rb Add shadowban mechanism for closet lists 2024-04-20 20:57:15 -07:00
20240502195157_fix_default_value_for_items_description.rb Fix broken default value in schema for item description 2024-05-02 13:00:10 -07:00
20240507235742_create_nc_mall_records.rb Add bare-bones rails nc_mall:sync task, incl. NCMallRecord model 2024-05-07 17:40:14 -07:00
20240511003019_add_unique_index_on_item_id_to_nc_mall_records.rb Load *all* NC Mall pages in nc_mall:sync 2024-05-10 17:39:40 -07:00
20240522222040_add_pb_item_name_to_colors.rb Add more PB item info and links to Item Getting Guide 2024-05-22 16:09:49 -07:00
20240522233638_add_pb_item_thumbnail_url_to_colors.rb Add paint brush images to Item Getting Guide 2024-05-22 16:59:36 -07:00