mirror of
https://github.com/openSUSE/osem.git
synced 2026-01-20 20:10:48 -05:00
11 lines
223 B
Ruby
11 lines
223 B
Ruby
# frozen_string_literal: true
|
|
|
|
class Qanswer < ApplicationRecord
|
|
belongs_to :question
|
|
belongs_to :answer, dependent: :delete
|
|
|
|
has_and_belongs_to_many :registrations
|
|
|
|
validates :question, :answer, presence: true
|
|
end
|