mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-27 02:04:33 +08:00
Fixed designated users relation
This commit is contained in:
parent
5bda5acebc
commit
6ea34adb22
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue