16306: Merge branch 'master'
[arvados.git] / services / api / db / migrate / 20201105190435_refresh_permissions.rb
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4
5 require '20200501150153_permission_table_constants'
6
7 class RefreshPermissions < ActiveRecord::Migration[5.2]
8   def change
9     # There was a report of deadlocks resulting in failing permission
10     # updates.  These failures should not have corrupted permissions
11     # (the failure should have rolled back the entire update) but we
12     # will refresh the permissions out of an abundance of caution.
13     refresh_permissions
14   end
15 end