Project

General

Profile

Actions

Refactor #29498

closed

make Plugin#pending_migration check plugin migrations instead of core ones

Added by Ondřej Ezr about 4 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
DB migrations
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

`pending_migration` method is used to check whether plugin permissions and roles should be initialized.
That should be based on plugin's migrations, but the method is now checking the core migrations only, as the plugin registration goes before the migration paths registration.


Related issues 1 (0 open1 closed)

Related to Foreman - Bug #30821: ActiveModel::UnknownAttributeError: unknown attribute 'name' for PermissionClosedOndřej EzrActions
Actions

Also available in: Atom PDF