Rename flags_default_topics to reviewable_default_topics

This functionality regressed with the reviewable update. I took the
opporunity to rename it when fixing it for clarity.
This commit is contained in:
Robin Ward
2019-05-08 10:05:45 -04:00
parent 8f2c442435
commit b409dab77f
4 changed files with 14 additions and 3 deletions

View File

@@ -0,0 +1,9 @@
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