remove useless code in models
This commit is contained in:
parent
fe7fb882c8
commit
2930de1015
3 changed files with 3 additions and 6 deletions
|
@ -23,8 +23,6 @@ class Instructeur < ApplicationRecord
|
|||
has_many :previous_follows, -> { inactive }, class_name: 'Follow', inverse_of: :instructeur
|
||||
has_many :followed_dossiers, through: :follows, source: :dossier
|
||||
has_many :previously_followed_dossiers, -> { distinct }, through: :previous_follows, source: :dossier
|
||||
has_many :avis
|
||||
has_many :dossiers_from_avis, through: :avis, source: :dossier
|
||||
has_many :trusted_device_tokens, dependent: :destroy
|
||||
|
||||
has_one :user, dependent: :nullify
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue