docbrown/lib/data_update_scripts
Julianna Tetreault 5f143c4308
Add Polymorphism to Broadcasts (Part 1) (#9231) [deploy]
* Add polymorphism to Broadcasts table
  - Adds a broadcastable_id column to Broadcasts
  - Adds a broadcastable_type column to Broadcasts

* Create Announcements and Welcome Notifications tables
  - Adds an Announcements table
  - Adds a Welcome Notifications table
  - Adds timestamps to both tables
  - Adds banner_style column to Announcements table

* Adds Announcement and Welcome Notification models
  - Adds an Announcement model in prep for polymorphism
  - Adds a WelcomeNotification model in prep for polymorphism

* Add data_update script to backfill type_of column for Broadcasts

* Add unique index on broadcastable_type and broadcastable_id on the Broadcasts table

* Add update! to the data_update script to backfill broadcastable_type
2020-07-13 09:36:19 -06:00
..
20200214171607_index_tags_to_elasticsearch.rb silence duplicate data update scripts to optimize starting up a new env (#7340) 2020-04-17 12:30:56 +02:00
20200217131245_re_index_existing_articles_with_approved.rb [deploy] Remove Algolia from Article Model (#7540) 2020-04-28 09:55:48 -05:00
20200217215802_index_listings_to_elasticsearch.rb [deploy] Rename classified listings (#7910) 2020-05-27 13:35:09 +00:00
20200218195023_index_chat_channel_memberships_to_elasticsearch.rb Index ChatChannelMemberships to Elasticsearch (#6162) [deploy] 2020-02-19 14:29:16 -05:00
20200225114328_update_tags_social_preview_templates.rb Custom social preview template for tags (#6290) [deploy] 2020-02-27 17:56:21 -05:00
20200226193303_backfill_column_for_broadcasts.rb Run BackfillColumnForBroadcasts only if the column still exists (#6508) 2020-03-09 15:38:34 +01:00
20200305201627_index_users_to_elasticsearch.rb [deploy] Remove Elasticsearch from Index Worker Names (#7594) 2020-04-29 12:12:29 -05:00
20200305201642_index_feed_content_to_elasticsearch.rb [deploy] Remove Elasticsearch from Index Worker Names (#7594) 2020-04-29 12:12:29 -05:00
20200313123108_index_users_to_elasticsearch.rb [deploy] Remove Elasticsearch from Index Worker Names (#7594) 2020-04-29 12:12:29 -05:00
20200324133751_update_tag_hotness_scores.rb Hotness Score for Tags Should Use Article positive_reactions_count (#6808) [deploy] 2020-03-31 09:04:20 -05:00
20200326145114_re_index_feed_content_to_elasticsearch.rb [deploy] Add public reactions count fields to Elasticsearch (#7956) 2020-05-20 13:06:48 -04:00
20200406213152_re_index_users_to_elasticsearch.rb [deploy] Add public reactions count fields to Elasticsearch (#7956) 2020-05-20 13:06:48 -04:00
20200410152018_resync_elasticsearch_documents.rb [deploy] Remove Elasticsearch from Index Worker Names (#7594) 2020-04-29 12:12:29 -05:00
20200415200651_index_reading_list_reactions.rb [deploy] Remove Elasticsearch from Index Worker Names (#7594) 2020-04-29 12:12:29 -05:00
20200503134234_remove_github_issues.rb [deploy] Decouple GitHub authentication from fetching GitHub issues (#7660) 2020-05-04 16:17:16 -04:00
20200518173504_update_public_reactions_count_from_positive_reactions_count.rb [deploy] Rubocop: fix violations of Layout/LineLength (#9197) 2020-07-08 08:36:36 -05:00
20200519142908_re_index_feed_content_and_users_to_elasticsearch.rb [deploy] Add public reactions count fields to Elasticsearch (#7956) 2020-05-20 13:06:48 -04:00
20200526181850_update_public_reaction_counts_again.rb [deploy] Rubocop: fix violations of Layout/LineLength (#9197) 2020-07-08 08:36:36 -05:00
20200530085153_backfill_broadcasts_timestamps.rb Add timestamps to broadcasts (#8181) 2020-06-01 18:11:38 +02:00
20200708163323_backfill_broadcastable_type_for_broadcasts.rb Add Polymorphism to Broadcasts (Part 1) (#9231) [deploy] 2020-07-13 09:36:19 -06:00