We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4209ab commit 3c789a2Copy full SHA for 3c789a2
1 file changed
app/models/ability.rb
@@ -2,6 +2,7 @@ class Ability < ApplicationRecord
2
include CommunityRelated
3
include AbilitiesHelper
4
5
+ validates :name, presence: true
6
validates :internal_id, uniqueness: { scope: [:community_id], case_sensitive: false }
7
8
def manual?
0 commit comments