25 lines
914 B
Ruby
25 lines
914 B
Ruby
# frozen_string_literal: true
|
|
|
|
# Expert
|
|
class Expert < ApplicationRecord
|
|
# == Constants ============================================================
|
|
|
|
# == Attributes ===========================================================
|
|
|
|
# == Extensions ===========================================================
|
|
|
|
# == Relationships ========================================================
|
|
has_one_attached :avatar
|
|
|
|
# == Validations ==========================================================
|
|
validates :name, presence: true
|
|
validates :description, presence: true, length: { maximum: 500 }
|
|
# == Scopes ===============================================================
|
|
|
|
# == Callbacks ============================================================
|
|
|
|
# == Class Methods ========================================================
|
|
|
|
# == Instance Methods =====================================================
|
|
end
|