mirror of
https://github.com/internetee/registry.git
synced 2025-06-06 04:37:30 +02:00
14 lines
282 B
Ruby
14 lines
282 B
Ruby
class User < ApplicationRecord
|
|
include Versions # version/user_version.rb
|
|
|
|
has_many :actions, dependent: :restrict_with_exception
|
|
|
|
attr_accessor :phone
|
|
|
|
self.ignored_columns = %w[legacy_id]
|
|
|
|
def id_role_username
|
|
"#{self.id}-#{self.class}: #{self.username}"
|
|
end
|
|
|
|
end
|