Skip to content

Commit

Permalink
Add order for questions
Browse files Browse the repository at this point in the history
  • Loading branch information
mixa9269 committed Aug 6, 2020
1 parent 2720b90 commit afc7601
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/app_test.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
class AppTest < ApplicationRecord
has_many :questions, dependent: :destroy
has_many :questions, -> { order(created_at: :asc) }, dependent: :destroy
end

0 comments on commit afc7601

Please sign in to comment.