better rename the old values otherwise, trouble

This commit is contained in:
Sam 2013-09-06 18:16:29 +10:00
parent 2b9838620d
commit 568a9b1b06
1 changed files with 9 additions and 0 deletions

View File

@ -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