mirror of
https://github.com/discourse/discourse.git
synced 2025-03-21 12:19:24 +08:00
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
|
belongs_to :poll
|
||||||
has_many :poll_votes, dependent: :delete_all
|
has_many :poll_votes, dependent: :delete_all
|
||||||
|
|
||||||
default_scope { order(created_at: :asc) }
|
default_scope { order(:id) }
|
||||||
end
|
end
|
||||||
|
|
||||||
# == Schema Information
|
# == Schema Information
|
||||||
|
Loading…
x
Reference in New Issue
Block a user