# == Schema Information
#
# Table name: change_payloads
#
#  id           :integer          not null, primary key
#  payload      :json
#  changeset_id :integer
#  created_at   :datetime         not null
#  updated_at   :datetime         not null
#
# Indexes
#
#  index_change_payloads_on_changeset_id  (changeset_id)
#

class ChangePayloadSerializer < ApplicationSerializer
  attributes :id, :changeset_id, :payload
end

# == Schema Information
#
# Table name: change_payloads
#
#  id           :integer          not null, primary key
#  payload      :json
#  changeset_id :integer
#  created_at   :datetime         not null
#  updated_at   :datetime         not null
#
# Indexes
#
#  index_change_payloads_on_changeset_id  (changeset_id)
#

class ChangePayloadSerializer < ApplicationSerializer
  attributes :id,
             :created_at,
             :updated_at,
             :changeset_id,
             :payload
end

Send create and update date on API response.
Send create and update date on API response.

Dispatcher expects the create and update dates to be sent in the response but they were missing.