Clarify dependent relationships between etablissement and entreprise
This commit is contained in:
parent
d5f620a163
commit
19b58a298c
3 changed files with 2 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
class Etablissement < ApplicationRecord
|
||||
belongs_to :dossier
|
||||
belongs_to :entreprise
|
||||
belongs_to :entreprise, dependent: :destroy
|
||||
|
||||
has_many :exercices, dependent: :destroy
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue