10 lines
324 B
Ruby
10 lines
324 B
Ruby
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
|