Migrate registration attributes to questions

This commit is contained in:
Stella 2014-11-09 18:25:36 +02:00
parent 08a47339a4
commit 59f2b636c5
9 changed files with 401 additions and 15 deletions

View file

@ -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