discourse/db/migrate/20130327185852_update_site_...

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

12 lines
355 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class UpdateSiteSettingsForHot < ActiveRecord::Migration[4.2]
def up
execute "UPDATE site_settings SET value = REPLACE(value, 'popular|', 'latest|hot|') where name = 'top_menu'"
end
def down
execute "UPDATE site_settings SET value = REPLACE(value, 'latest|hot', 'popular|') where name = 'top_menu'"
end
end