discourse/db/migrate/20190508135348_rename_site_setting_default_topics.rb

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

12 lines
356 B
Ruby
Raw Normal View History

2019-05-13 09:55:44 +08:00
# frozen_string_literal: true
class RenameSiteSettingDefaultTopics < ActiveRecord::Migration[5.2]
def up
execute "UPDATE site_settings SET name = 'reviewable_default_topics' WHERE name = 'flags_default_topics'"
end
def down
execute "UPDATE site_settings SET name = 'flags_default_topics' WHERE name = 'reviewable_default_topics'"
end
end