8 lines
203 B
Ruby
8 lines
203 B
Ruby
# frozen_string_literal: true
|
|
class QuizComment < ApplicationRecord
|
|
belongs_to :user
|
|
belongs_to :candidate, foreign_key: :test_hash, primary_key: :test_hash
|
|
|
|
validates :message, presence: true
|
|
end
|