Sha256: 042398415a23d47faa63c54e6634bfcd8dab679272eb3f9aa8c8bb3012cb0fd7

Contents?: true

Size: 347 Bytes

Versions: 4

Compression:

Stored size: 347 Bytes

Contents

module NippoCore
  class GroupMemberRelation < ApplicationRecord
    belongs_to :user
    belongs_to :group
    # TODO: reflect test to optional
    belongs_to :accepter, class_name: 'NippoCore::User', optional: true

    validates :user, presence: true
    validates :group, presence: true
    validates :authentication, presence: true
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
nippo_core-1.0.2 app/models/nippo_core/group_member_relation.rb
nippo_core-1.0.1 app/models/nippo_core/group_member_relation.rb
nippo_core-1.0.0 app/models/nippo_core/group_member_relation.rb
nippo_core-0.3.0 app/models/nippo_core/group_member_relation.rb