Ignore entreprise_id on etablissements

This commit is contained in:
Paul Chavard 2021-01-26 14:31:01 +01:00
parent 8b6d218f91
commit 03ddd17884

View file

@ -48,6 +48,8 @@
# entreprise_id :integer # entreprise_id :integer
# #
class Etablissement < ApplicationRecord class Etablissement < ApplicationRecord
self.ignored_columns = [:entreprise_id]
belongs_to :dossier, optional: true belongs_to :dossier, optional: true
has_one :champ, class_name: 'Champs::SiretChamp' has_one :champ, class_name: 'Champs::SiretChamp'