Improving surveys system: showing surveys in admin UI as they will be for the user
This commit is contained in:
parent
335608e6c4
commit
03168b4efe
15 changed files with 213 additions and 46 deletions
|
|
@ -2,5 +2,7 @@ class Survey < ActiveRecord::Base
|
|||
belongs_to :surveyable, polymorphic: true
|
||||
has_many :survey_questions
|
||||
|
||||
enum target: [:conference, :registration]
|
||||
|
||||
validates :title, presence: true
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue