Added Submission model

This commit is contained in:
mdeniz 2016-06-30 17:28:07 +02:00
parent 5ca234c8fc
commit 933e14673c
9 changed files with 49 additions and 31 deletions

View file

@ -1,6 +1,7 @@
class Survey < ActiveRecord::Base
belongs_to :surveyable, polymorphic: true
has_many :survey_questions
has_many :survey_submissions
enum target: [:after_conference, :during_registration]
validates :title, presence: true