Adding surveys

This commit is contained in:
Stella Rouzi 2016-06-28 18:16:06 +03:00
parent 69a0d12793
commit 335608e6c4
28 changed files with 434 additions and 21 deletions

6
app/models/survey.rb Normal file
View file

@ -0,0 +1,6 @@
class Survey < ActiveRecord::Base
belongs_to :surveyable, polymorphic: true
has_many :survey_questions
validates :title, presence: true
end