mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 22:26:26 +08:00
10 lines
297 B
Ruby
10 lines
297 B
Ruby
class RenameSystemUsername < ActiveRecord::Migration[4.2]
|
|
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
|