Sha256: 14b0cbed2d17fdb74514265f7434e129ea77602d15d611f162eb9ba1e83c537e

Contents?: true

Size: 341 Bytes

Versions: 61

Compression:

Stored size: 341 Bytes

Contents

# frozen_string_literal: true

module Decidim
  # A UserGroupMembership associate user with user groups
  class UserGroupMembership < ApplicationRecord
    belongs_to :user, class_name: "Decidim::User", foreign_key: :decidim_user_id
    belongs_to :user_group, class_name: "Decidim::UserGroup", foreign_key: :decidim_user_group_id
  end
end

Version data entries

61 entries across 61 versions & 2 rubygems

Version Path
decidim-core-0.2.0 app/models/decidim/user_group_membership.rb