From bc5168c3c7144c987463eae49a3c7f292fa841fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Thu, 20 Feb 2014 17:08:26 +0100 Subject: [PATCH] BUGFIX: rename site_settings in the database too --- db/migrate/20140220160510_rename_site_settings.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 db/migrate/20140220160510_rename_site_settings.rb diff --git a/db/migrate/20140220160510_rename_site_settings.rb b/db/migrate/20140220160510_rename_site_settings.rb new file mode 100644 index 00000000000..1a3395c865b --- /dev/null +++ b/db/migrate/20140220160510_rename_site_settings.rb @@ -0,0 +1,13 @@ +class RenameSiteSettings < ActiveRecord::Migration + + def up + execute "UPDATE site_settings SET name = 'allow_restore' WHERE name = 'allow_import'" + execute "UPDATE site_settings SET name = 'topics_per_period_in_top_summary' WHERE name = 'topics_per_period_in_summary'" + end + + def down + execute "UPDATE site_settings SET name = 'allow_import' WHERE name = 'allow_restore'" + execute "UPDATE site_settings SET name = 'topics_per_period_in_summary' WHERE name = 'topics_per_period_in_top_summary'" + end + +end