Projects::BranchRule validations and enum config
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Convert the Projects::BranchRule
class to an ActiveRecord
class.
Add enum config for rule_type
Add validations for name
(probably matching the ones for ProtectedBranch
)
Associations for project
and group
We need to update the find
override. It should toggle between current behavior and AR behavior (super
) when the feature flag is toggled.
Edited by 🤖 GitLab Bot 🤖