forgeplus/app/models/member_role.rb

7 lines
137 B
Ruby
Raw Normal View History

2020-03-09 00:40:16 +08:00
class MemberRole < ApplicationRecord
belongs_to :role
belongs_to :member
validates :member_id, :role_id, presence: true
end