Sha256: 6f2bc445fab99295ba506ac4015f89e9bab91441d626fd6d5ff459890563305e
Contents?: true
Size: 308 Bytes
Versions: 11
Compression:
Stored size: 308 Bytes
Contents
# frozen_string_literal: true class Monarchy::MembersRole < ActiveRecord::Base self.table_name = 'monarchy_members_roles' belongs_to :member, class_name: "::#{Monarchy.member_class}" belongs_to :role, class_name: "::#{Monarchy.role_class}" validates :role_id, uniqueness: { scope: :member_id } end
Version data entries
11 entries across 11 versions & 1 rubygems