diff options
author | Go MAEDA <maeda@farend.jp> | 2023-10-16 14:26:00 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2023-10-16 14:26:00 +0000 |
commit | 1dae2cc595470370ba49183e561066944069bfdc (patch) | |
tree | fcb68a096e30c86cd7db03de6d03226fba19f71c /db/migrate | |
parent | 03280712d3969b8e2de5119752c9b770c0f6f95c (diff) | |
download | redmine-1dae2cc595470370ba49183e561066944069bfdc.tar.gz redmine-1dae2cc595470370ba49183e561066944069bfdc.zip |
Remove unused "mention_users" permission from the roles table (#37974).
git-svn-id: https://svn.redmine.org/redmine/trunk@22347 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20231012112407_remove_mention_users_permission.rb | 12 |
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 |