Actions
Feature #18321
closedProvide migration to fix cloned roles
Status:
Closed
Priority:
Normal
Assignee:
Category:
Users, Roles and Permissions
Target version:
Difficulty:
Triaged:
Bugzilla link:
Pull request:
Description
When role was cloned, it was created with incorrect builtin value causing issues. This was fixed in #16828 but no migration was provided to fix already cloned records:
Role.where(:builtin => nil).update_all(:builtin => 0)
Updated by Lukas Zapletal over 8 years ago
Workaround:
echo "Role.where(:builtin => nil).update_all(:builtin => 0)" | foreman-rake console
Updated by Lukas Zapletal over 8 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset f505ec3db8a37abe57de1945bcdc80d9307384c6.
Actions