models: ignore deprecated User columns

This commit is contained in:
Pierre de La Morinerie 2022-03-16 07:46:13 +01:00
parent 31bd05f835
commit 6849a73aec

View file

@ -41,6 +41,8 @@ class User < ApplicationRecord
devise :database_authenticatable, :registerable, :async,
:recoverable, :rememberable, :trackable, :validatable, :confirmable, :lockable
self.ignored_columns = [:administrateur_id, :instructeur_id, :expert_id]
has_many :dossiers, dependent: :destroy
has_many :invites, dependent: :destroy
has_many :dossiers_invites, through: :invites, source: :dossier