mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
question builder
This commit is contained in:
parent
4356616566
commit
3105c8da5d
28 changed files with 338 additions and 15 deletions
8
app/models/qanswer.rb
Normal file
8
app/models/qanswer.rb
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
class Qanswer < ActiveRecord::Base
|
||||
attr_accessible :question_id, :answer_id
|
||||
|
||||
belongs_to :question
|
||||
belongs_to :answer, :dependent => :delete
|
||||
|
||||
has_and_belongs_to_many :registrations
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue