Add survey replies.

This commit is contained in:
Shyukri Shyukriev 2016-06-30 12:05:00 +02:00
parent 03168b4efe
commit 157a16d8f2
6 changed files with 29 additions and 2 deletions

View file

@ -42,6 +42,7 @@ class User < ActiveRecord::Base
has_many :votes, dependent: :destroy
has_many :voted_events, through: :votes, source: :events
has_many :subscriptions, dependent: :destroy
has_many :survey_replies
accepts_nested_attributes_for :roles
scope :admin, -> { where(is_admin: true) }