mirror of
https://github.com/glitch-soc/mastodon.git
synced 2026-03-29 03:00:33 +02:00
12 lines
289 B
Ruby
12 lines
289 B
Ruby
# frozen_string_literal: true
|
|
|
|
class AddInviteApprovalBypassPermission < ActiveRecord::Migration[8.1]
|
|
class UserRole < ApplicationRecord; end
|
|
|
|
def up
|
|
UserRole.where('permissions & (1 << 16) = 1 << 16').update_all('permissions = permissions | (1 << 21)')
|
|
end
|
|
|
|
def down; end
|
|
end
|