Sha256: 7a34b093b37a66e8787e85da2c9a468171c8a6800373fa5715ffe92bbf60a692
Contents?: true
Size: 396 Bytes
Versions: 6
Compression:
Stored size: 396 Bytes
Contents
module Mks module Auth # A model to represent various roles of users in the system class UserRole < ApplicationRecord validates :name, presence: true, uniqueness: true belongs_to :application_module has_and_belongs_to_many :users, join_table: 'mks_auth_users_user_roles' has_and_belongs_to_many :menus, join_table: 'mks_auth_menus_user_roles' end end end
Version data entries
6 entries across 6 versions & 1 rubygems