Adds a data_update script that removes collective_noun from SiteConfig (#11973) [deploy]

This commit is contained in:
Julianna Tetreault 2020-12-28 10:06:05 -07:00 committed by GitHub
parent 59ce70bf91
commit ac573b446b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,7 @@
module DataUpdateScripts
class RemoveCollectiveNounFromConfig
def run
SiteConfig.where(var: %w[collective_noun collective_noun_disabled]).destroy_all
end
end
end