mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-18 11:32:24 -05:00
10 lines
319 B
Ruby
10 lines
319 B
Ruby
|
class UpdateSiteSettingsForHot < ActiveRecord::Migration
|
||
|
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
|