From ac573b446b2dcc14d5821f0452a813a65530e9e0 Mon Sep 17 00:00:00 2001 From: Julianna Tetreault <32834804+juliannatetreault@users.noreply.github.com> Date: Mon, 28 Dec 2020 10:06:05 -0700 Subject: [PATCH] Adds a data_update script that removes collective_noun from SiteConfig (#11973) [deploy] --- .../20201218173445_remove_collective_noun_from_config.rb | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 lib/data_update_scripts/20201218173445_remove_collective_noun_from_config.rb diff --git a/lib/data_update_scripts/20201218173445_remove_collective_noun_from_config.rb b/lib/data_update_scripts/20201218173445_remove_collective_noun_from_config.rb new file mode 100644 index 000000000..23736cee9 --- /dev/null +++ b/lib/data_update_scripts/20201218173445_remove_collective_noun_from_config.rb @@ -0,0 +1,7 @@ +module DataUpdateScripts + class RemoveCollectiveNounFromConfig + def run + SiteConfig.where(var: %w[collective_noun collective_noun_disabled]).destroy_all + end + end +end