mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-05 19:34:34 +08:00
Fix the user.activities association so it works
Closes SCI-3494.
This commit is contained in:
parent
8f2d873130
commit
8b116d9de7
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ class User < ApplicationRecord
|
|||
has_many :user_my_modules, inverse_of: :user
|
||||
has_many :my_modules, through: :user_my_modules
|
||||
has_many :comments, inverse_of: :user
|
||||
has_many :activities, inverse_of: :owner
|
||||
has_many :activities, inverse_of: :owner, foreign_key: 'owner_id'
|
||||
has_many :results, inverse_of: :user
|
||||
has_many :samples, inverse_of: :user
|
||||
has_many :samples_tables, inverse_of: :user, dependent: :destroy
|
||||
|
|
Loading…
Add table
Reference in a new issue