FIX: ensure poll options keep their order

This commit is contained in:
Régis Hanol 2018-11-23 10:37:05 +01:00
parent e2214b50f3
commit 606faa2ee5
1 changed files with 1 additions and 1 deletions

View File

@ -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