2021-01-07 15:45:02 +01:00
|
|
|
# == Schema Information
|
|
|
|
#
|
|
|
|
# Table name: experts
|
|
|
|
#
|
|
|
|
# id :bigint not null, primary key
|
|
|
|
# created_at :datetime not null
|
|
|
|
# updated_at :datetime not null
|
|
|
|
#
|
|
|
|
class Expert < ApplicationRecord
|
|
|
|
has_one :user
|
2021-01-25 13:01:13 +01:00
|
|
|
|
|
|
|
def email
|
|
|
|
user.email
|
|
|
|
end
|
2021-01-07 15:45:02 +01:00
|
|
|
end
|