Remove the link between commentaire and user
This commit is contained in:
parent
a640ec1d43
commit
c20ad5ca17
7 changed files with 45 additions and 25 deletions
|
@ -21,7 +21,6 @@ class Champ < ApplicationRecord
|
|||
belongs_to :dossier, -> { with_discarded }, inverse_of: false, touch: true, optional: false
|
||||
belongs_to :type_de_champ, inverse_of: :champ, optional: false
|
||||
belongs_to :parent, class_name: 'Champ', optional: true
|
||||
has_many :commentaires
|
||||
has_one_attached :piece_justificative_file
|
||||
|
||||
# We declare champ specific relationships (Champs::CarteChamp, Champs::SiretChamp and Champs::RepetitionChamp)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue