diff options
author | Claire <claire.github-309c@sitedethib.com> | 2020-12-21 18:28:23 +0100 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2020-12-21 18:28:23 +0100 |
commit | 38bfaf885543f349e88bb18edbc3536cefc0701c (patch) | |
tree | 8cd8f0b68c26bb46e14b20484b828df1159363a5 /app/models/poll.rb | |
parent | 61d5744dcc33d4cfdd26a38af138a4a416a93868 (diff) | |
parent | 43961035a906cd8bccdf4c1ac023980b37823bb3 (diff) |
Merge branch 'master' into glitch-soc/merge-upstream
Diffstat (limited to 'app/models/poll.rb')
-rw-r--r-- | app/models/poll.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/poll.rb b/app/models/poll.rb index b5deafcc2..e1ca55252 100644 --- a/app/models/poll.rb +++ b/app/models/poll.rb @@ -25,7 +25,7 @@ class Poll < ApplicationRecord belongs_to :account belongs_to :status - has_many :votes, class_name: 'PollVote', inverse_of: :poll, dependent: :destroy + has_many :votes, class_name: 'PollVote', inverse_of: :poll, dependent: :delete_all has_many :notifications, as: :activity, dependent: :destroy |