diff --git a/app/models/task.rb b/app/models/task.rb index c22525029..e399fc72c 100644 --- a/app/models/task.rb +++ b/app/models/task.rb @@ -23,4 +23,6 @@ class Task < ApplicationRecord validates :name, presence: true validates :description, presence: true + + default_scope { order(created_at: :asc) } end diff --git a/app/views/organizations/pets/tasks/_tasks.html.erb b/app/views/organizations/pets/tasks/_tasks.html.erb index 21679f82c..aac2df8db 100644 --- a/app/views/organizations/pets/tasks/_tasks.html.erb +++ b/app/views/organizations/pets/tasks/_tasks.html.erb @@ -14,15 +14,18 @@
<%= task.description %>
+ +<%= task.description %>
+