From 55f47491a4b56e193ee4924615b51e53dd2cbf82 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Sat, 27 Jan 2018 09:15:46 +0800 Subject: [PATCH] Remove stale GA site setting records from the DB. --- .../20180127005644_remove_old_ga_site_settings.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 db/migrate/20180127005644_remove_old_ga_site_settings.rb diff --git a/db/migrate/20180127005644_remove_old_ga_site_settings.rb b/db/migrate/20180127005644_remove_old_ga_site_settings.rb new file mode 100644 index 00000000000..6c3f29df20f --- /dev/null +++ b/db/migrate/20180127005644_remove_old_ga_site_settings.rb @@ -0,0 +1,10 @@ +class RemoveOldGaSiteSettings < ActiveRecord::Migration[5.1] + def up + execute "DELETE FROM site_settings WHERE name = 'ga_tracking_code'" + execute "DELETE FROM site_settings WHERE name = 'ga_domain_name'" + end + + def down + raise ActiveRecord::IrreversibleMigration + end +end