From d48b149bfe558e673da375f389bb91d56654900a Mon Sep 17 00:00:00 2001 From: Markus Kahl Date: Mon, 24 Oct 2022 15:21:16 +0200 Subject: [PATCH] fix migration by updating schema cache --- .../migrate/20220712165928_add_storages_permissions_to_roles.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/storages/db/migrate/20220712165928_add_storages_permissions_to_roles.rb b/modules/storages/db/migrate/20220712165928_add_storages_permissions_to_roles.rb index ef89f5940b..4a263e81b3 100644 --- a/modules/storages/db/migrate/20220712165928_add_storages_permissions_to_roles.rb +++ b/modules/storages/db/migrate/20220712165928_add_storages_permissions_to_roles.rb @@ -30,6 +30,8 @@ require Rails.root.join('db/migrate/migration_utils/permission_adder') class AddStoragesPermissionsToRoles < ActiveRecord::Migration[6.1] def up + Role.reset_column_information + ::Migration::MigrationUtils::PermissionAdder .add(:select_project_modules, :manage_storages_in_project)