1 2 3 4 5 6 7 8 9 10 11 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