forgeplus/app/models/member_role.rb

7 lines
137 B
Ruby

class MemberRole < ApplicationRecord
belongs_to :role
belongs_to :member
validates :member_id, :role_id, presence: true
end