discourse-adplugin/db/migrate/20190603112536_rename_site_setting_ads_txt.rb
2019-06-03 11:39:28 -04:00

12 lines
303 B
Ruby

# frozen_string_literal: true
class RenameSiteSettingAdsTxt < ActiveRecord::Migration[5.2]
def up
execute "UPDATE site_settings SET name = 'ads_txt' WHERE name = 'adsense_ads_txt'"
end
def down
execute "UPDATE site_settings SET name = 'adsense_ads_txt' WHERE name = 'ads_txt'"
end
end