Sha256: 9e23f7df9869df67fa83bd6887c89955d40a39e758d7d654c3f70d48acd6fa6b

Contents?: true

Size: 303 Bytes

Versions: 48

Compression:

Stored size: 303 Bytes

Contents

module Incline
  class AccessGroupUserMember < ActiveRecord::Base

    belongs_to :group, class_name: 'Incline::AccessGroup'
    belongs_to :member, class_name: 'Incline::User'

    validates :group_id, presence: true
    validates :member_id, presence: true, uniqueness: { scope: :group_id }
  end
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
incline-0.3.14 app/models/incline/access_group_user_member.rb
incline-0.3.13 app/models/incline/access_group_user_member.rb
incline-0.3.12 app/models/incline/access_group_user_member.rb
incline-0.3.11 app/models/incline/access_group_user_member.rb
incline-0.3.10 app/models/incline/access_group_user_member.rb
incline-0.3.9 app/models/incline/access_group_user_member.rb
incline-0.3.8 app/models/incline/access_group_user_member.rb
incline-0.3.7 app/models/incline/access_group_user_member.rb
incline-0.3.6 app/models/incline/access_group_user_member.rb
incline-0.3.5 app/models/incline/access_group_user_member.rb
incline-0.3.4 app/models/incline/access_group_user_member.rb
incline-0.3.3 app/models/incline/access_group_user_member.rb
incline-0.3.2 app/models/incline/access_group_user_member.rb
incline-0.3.1 app/models/incline/access_group_user_member.rb
incline-0.3.0 app/models/incline/access_group_user_member.rb
incline-0.2.36 app/models/incline/access_group_user_member.rb
incline-0.2.35 app/models/incline/access_group_user_member.rb
incline-0.2.34 app/models/incline/access_group_user_member.rb
incline-0.2.28 app/models/incline/access_group_user_member.rb
incline-0.2.27 app/models/incline/access_group_user_member.rb