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 almost 8 years ago
- Related to Bug #16828: Cloned roles should have `builtin` value 0 added
Updated by Lukas Zapletal almost 8 years ago
Workaround:
echo "Role.where(:builtin => nil).update_all(:builtin => 0)" | foreman-rake console
Updated by The Foreman Bot almost 8 years ago
- Status changed from New to Ready For Testing
- Assignee set to Lukas Zapletal
- Pull request https://github.com/theforeman/foreman/pull/4244 added
Updated by Lukas Zapletal almost 8 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset f505ec3db8a37abe57de1945bcdc80d9307384c6.
Updated by Dominic Cleal almost 8 years ago
- Translation missing: en.field_release set to 209
Actions