Ignore legacy database columns

Closes #1377
This commit is contained in:
Artur Beljajev 2019-12-15 18:27:01 +02:00
parent 857b35417a
commit f0a7edd6d8
14 changed files with 18 additions and 24 deletions

View file

@ -5,6 +5,8 @@ class User < ApplicationRecord
attr_accessor :phone
self.ignored_columns = %w[legacy_id]
def id_role_username
"#{self.id}-#{self.class}: #{self.username}"
end