def gon_index_checkins
      checkins = user_devices.map do |device|
        device.past_checkins.first.as_json.merge(device: device.name) if device.past_checkins.exists?
      end
      checkins.compact.sort_by { |checkin| checkin["created_at"] }.reverse