osem-fcy/app/models/qanswer.rb

9 lines
191 B
Ruby
Raw Normal View History

2014-02-09 18:05:57 +02:00
class Qanswer < ActiveRecord::Base
attr_accessible :question_id, :answer_id
belongs_to :question
2014-07-21 14:49:05 +02:00
belongs_to :answer, dependent: :delete
2014-02-09 18:05:57 +02:00
has_and_belongs_to_many :registrations
end