From 568a9b1b066508677a428a890fb3e98c8967b63f Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 6 Sep 2013 18:16:29 +1000 Subject: [PATCH] better rename the old values otherwise, trouble --- db/migrate/20130906081326_rename_system_username.rb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 db/migrate/20130906081326_rename_system_username.rb diff --git a/db/migrate/20130906081326_rename_system_username.rb b/db/migrate/20130906081326_rename_system_username.rb new file mode 100644 index 00000000000..38550ddc482 --- /dev/null +++ b/db/migrate/20130906081326_rename_system_username.rb @@ -0,0 +1,9 @@ +class RenameSystemUsername < ActiveRecord::Migration + def up + execute "update site_settings set name = 'site_contact_username' where name = 'system_username'" + end + + def down + execute "update site_settings set name = 'system_username' where name = 'site_contact_username'" + end +end