Skip to content

Commit

Permalink
t# This is a combination of 3 commits.
Browse files Browse the repository at this point in the history
add attributes to user role
  • Loading branch information
liu-samuel committed Oct 1, 2024
1 parent b48b02f commit 98235e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/miq_user_role.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ class MiqUserRole < ApplicationRecord
virtual_column :service_template_restriction, :type => :string

validates :name, :presence => true, :uniqueness_when_changed => {:case_sensitive => false}
validates :features_with_id, presence: true

serialize :settings
serialize :features_with_id

default_value_for :read_only, false

Expand Down

0 comments on commit 98235e1

Please sign in to comment.