mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-11-09 16:01:30 +08:00
Fix repository filters to user relation [SCI-6263] (#3820)
This commit is contained in:
parent
cc063a46b7
commit
e6010e3313
1 changed files with 1 additions and 1 deletions
|
|
@ -71,7 +71,7 @@ class User < ApplicationRecord
|
|||
has_many :results, inverse_of: :user
|
||||
has_many :repositories, inverse_of: :user
|
||||
has_many :repository_table_states, inverse_of: :user, dependent: :destroy
|
||||
has_many :repository_table_filters, inverse_of: :user, dependent: :nullify
|
||||
has_many :repository_table_filters, foreign_key: 'created_by_id', inverse_of: :created_by, dependent: :nullify
|
||||
has_many :steps, inverse_of: :user
|
||||
has_many :reports, inverse_of: :user
|
||||
has_many :created_assets, class_name: 'Asset', foreign_key: 'created_by_id'
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue