We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5853bc3 commit 10a5392Copy full SHA for 10a5392
lib/claper/polls/poll.ex
@@ -27,7 +27,11 @@ defmodule Claper.Polls.Poll do
27
field :show_results, :boolean
28
29
belongs_to :presentation_file, Claper.Presentations.PresentationFile
30
- has_many :poll_opts, Claper.Polls.PollOpt, on_replace: :delete
+
31
+ has_many :poll_opts, Claper.Polls.PollOpt,
32
+ preload_order: [asc: :id],
33
+ on_replace: :delete
34
35
has_many :poll_votes, Claper.Polls.PollVote, on_replace: :delete
36
37
timestamps()
0 commit comments