Sha256: f44913e5323328ec02b2650fc03bda50cacd81dee1acfa8f5a46b4c2df290311

Contents?: true

Size: 336 Bytes

Versions: 10

Compression:

Stored size: 336 Bytes

Contents

# frozen_string_literal: true

module Maquina
  class Membership < ApplicationRecord
    belongs_to :organization, class_name: "Maquina::Organization", foreign_key: :maquina_organization_id
    belongs_to :user, class_name: "Maquina::User", foreign_key: :maquina_user_id

    enum role: Maquina.configuration.membership_roles
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
maquina-0.5.2 app/models/maquina/membership.rb
maquina-0.5.1 app/models/maquina/membership.rb
maquina-0.4.0 app/models/maquina/membership.rb
maquina-0.3.0 app/models/maquina/membership.rb
maquina-0.2.5 app/models/maquina/membership.rb
maquina-0.2.4 app/models/maquina/membership.rb
maquina-0.2.3 app/models/maquina/membership.rb
maquina-0.2.2 app/models/maquina/membership.rb
maquina-0.2.1 app/models/maquina/membership.rb
maquina-0.2.0 app/models/maquina/membership.rb