Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/controllers/people_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def json_attributes
methods: [:full_name],
include: {
tasks: {
only: [:name, :priority],
only: [:name, :priority, :duration],
}
},
}
Expand Down
5 changes: 5 additions & 0 deletions db/migrate/20230111154617_add_duration_to_task.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class AddDurationToTask < ActiveRecord::Migration[6.1]
def change
add_column :tasks, :duration, :integer
end
end
3 changes: 2 additions & 1 deletion db/schema.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.