discourse/db/migrate/20130906081326_rename_syste...

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
328 B
Ruby
Raw Normal View History

# frozen_string_literal: true
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