FEATURE: Allow group moderators to close/archive topics

* FEATURE: Allow group moderators to close/archive topics
This commit is contained in:
jbrw
2020-07-14 12:36:19 -04:00
committed by GitHub
parent cc6d722de1
commit 06073fe8c6
31 changed files with 215 additions and 38 deletions

View File

@@ -0,0 +1,13 @@
# frozen_string_literal: true
class RenameCategoryGroupModerationSetting < ActiveRecord::Migration[6.0]
def up
execute "UPDATE site_settings SET name = 'enable_category_group_moderation' WHERE name = 'enable_category_group_review'"
execute "UPDATE user_histories SET subject = 'enable_category_group_moderation' WHERE subject = 'enable_category_group_review'"
end
def down
execute "UPDATE site_settings SET name = 'enable_category_group_review' WHERE name = 'enable_category_group_moderation'"
execute "UPDATE user_histories SET subject = 'enable_category_group_review' WHERE subject = 'enable_category_group_moderation'"
end
end