discourse/db/migrate/20221101140632_rename_onboarding_popups_site_setting.rb

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

12 lines
349 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class RenameOnboardingPopupsSiteSetting < ActiveRecord::Migration[7.0]
def up
execute "UPDATE site_settings SET name = 'enable_user_tips' WHERE name = 'enable_onboarding_popups'"
end
def down
execute "UPDATE site_settings SET name = 'enable_onboarding_popups' WHERE name = 'enable_user_tips'"
end
end