From 6849a73aec9becb1bbf0340e33828bc02e2ca929 Mon Sep 17 00:00:00 2001 From: Pierre de La Morinerie Date: Wed, 16 Mar 2022 07:46:13 +0100 Subject: [PATCH] models: ignore deprecated User columns --- app/models/user.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/models/user.rb b/app/models/user.rb index 15c8a8514..082e607e9 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -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