mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 19:53:53 -06:00
12 lines
307 B
Ruby
12 lines
307 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
class MigrateLegacyNavigationMenuSiteSetting < ActiveRecord::Migration[7.0]
|
||
|
def up
|
||
|
execute "UPDATE site_settings SET value = 'header dropdown' WHERE name = 'navigation_menu' AND value = 'legacy'"
|
||
|
end
|
||
|
|
||
|
def down
|
||
|
raise ActiveRecord::IrreversibleMigration
|
||
|
end
|
||
|
end
|