osem-fcy/app/models/qanswer.rb
2016-01-10 18:59:47 +02:00

10 lines
217 B
Ruby

class Qanswer < ActiveRecord::Base
attr_accessible :question_id, :answer_id
belongs_to :question
belongs_to :answer
has_and_belongs_to_many :registrations
validates :question, :answer, presence: true
end