Fixed designated users relation

This commit is contained in:
Martin Artnik 2021-10-13 13:39:28 +02:00
parent 5bda5acebc
commit 6ea34adb22

View file

@ -57,7 +57,7 @@ class MyModule < ApplicationRecord
has_many :repository_snapshots, dependent: :destroy, inverse_of: :my_module
has_many :user_my_modules, inverse_of: :my_module, dependent: :destroy
has_many :users, through: :user_assignments
has_many :designated_users, through: :user_my_modules
has_many :designated_users, through: :user_my_modules, source: :user
has_many :report_elements, inverse_of: :my_module, dependent: :destroy
has_many :protocols, inverse_of: :my_module, dependent: :destroy
# Associations for old activity type