FIX: ensure poll options keep their order
This commit is contained in:
parent
e2214b50f3
commit
606faa2ee5
|
@ -2,7 +2,7 @@ class PollOption < ActiveRecord::Base
|
|||
belongs_to :poll
|
||||
has_many :poll_votes, dependent: :delete_all
|
||||
|
||||
default_scope { order(created_at: :asc) }
|
||||
default_scope { order(:id) }
|
||||
end
|
||||
|
||||
# == Schema Information
|
||||
|
|
Loading…
Reference in New Issue