2017-08-31 00:06:56 -04:00
|
|
|
class UpdateSiteSettingsForHot < ActiveRecord::Migration[4.2]
|
2013-03-27 16:17:49 -04:00
|
|
|
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
|