Merge pull request #5252 from betagouv/remove_useless_dependent
remove useless dependent option
This commit is contained in:
commit
a99757eb39
1 changed files with 2 additions and 2 deletions
|
@ -1,8 +1,8 @@
|
||||||
class GroupeInstructeur < ApplicationRecord
|
class GroupeInstructeur < ApplicationRecord
|
||||||
DEFAULT_LABEL = 'défaut'
|
DEFAULT_LABEL = 'défaut'
|
||||||
belongs_to :procedure, -> { with_discarded }, inverse_of: :groupe_instructeurs
|
belongs_to :procedure, -> { with_discarded }, inverse_of: :groupe_instructeurs
|
||||||
has_many :assign_tos
|
has_many :assign_tos, dependent: :destroy
|
||||||
has_many :instructeurs, through: :assign_tos, dependent: :destroy
|
has_many :instructeurs, through: :assign_tos
|
||||||
has_many :dossiers
|
has_many :dossiers
|
||||||
has_and_belongs_to_many :exports
|
has_and_belongs_to_many :exports
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue