Remove the link between commentaire and user

This commit is contained in:
Paul Chavard 2021-04-22 14:44:58 +01:00
parent a640ec1d43
commit c20ad5ca17
7 changed files with 45 additions and 25 deletions

View file

@ -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)