summaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20231012112407_remove_mention_users_permission.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/db/migrate/20231012112407_remove_mention_users_permission.rb b/db/migrate/20231012112407_remove_mention_users_permission.rb
new file mode 100644
index 000000000..b57c90536
--- /dev/null
+++ b/db/migrate/20231012112407_remove_mention_users_permission.rb
@@ -0,0 +1,12 @@
+class RemoveMentionUsersPermission < ActiveRecord::Migration[6.1]
+ def up
+ Role.reset_column_information
+ Role.all.each do |r|
+ r.remove_permission!(:mention_users) if r.has_permission?(:mention_users)
+ end
+ end
+
+ def down
+ # no-op
+ end
+end