Skip to content

Commit

Permalink
add attributes to user role
Browse files Browse the repository at this point in the history
  • Loading branch information
liu-samuel committed Aug 15, 2024
1 parent 80ff67c commit 8226adc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/models/miq_user_role.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@ class MiqUserRole < ApplicationRecord
virtual_column :service_template_restriction, :type => :string

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

serialize :settings
serialize :checked_boxes
serialize :features_with_id

default_value_for :read_only, false

Expand Down

0 comments on commit 8226adc

Please sign in to comment.