Add survey with target after_event

This commit is contained in:
Stella Rouzi 2018-02-23 11:52:27 +02:00
parent e1adf28081
commit 9908f88570
10 changed files with 45 additions and 9 deletions

View file

@ -21,6 +21,7 @@ class Event < ApplicationRecord
has_many :votes, dependent: :destroy
has_many :voters, through: :votes, source: :user
has_many :commercials, as: :commercialable, dependent: :destroy
has_many :surveys, as: :surveyable, dependent: :destroy
belongs_to :event_type
has_many :events_registrations