Migrate registration attributes to questions
This commit is contained in:
parent
08a47339a4
commit
59f2b636c5
9 changed files with 401 additions and 15 deletions
|
|
@ -5,4 +5,6 @@ class Qanswer < ActiveRecord::Base
|
|||
belongs_to :answer, dependent: :delete
|
||||
|
||||
has_and_belongs_to_many :registrations
|
||||
|
||||
validates :question, :answer, presence: true
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue